File tree 3 files changed +6
-147
lines changed
integration-tests/lockfile
3 files changed +6
-147
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
1
3
# make sure errors stop the script
2
4
set -e
3
5
4
6
echo " add patch-package"
5
7
npm i $1
6
8
alias patch-package=./node_modules/.bin/patch-package
7
9
8
- function testLockFile() {
10
+ testLockFile () {
9
11
echo " Version test $1 "
10
12
npm i --lockfile-version $1
11
13
@@ -18,9 +20,8 @@ function testLockFile() {
18
20
echo " patch-package should run"
19
21
patch-package left-pad
20
22
21
- echo " SNAPSHOT: check patch with lockfile $1 "
22
- cat patches/left-pad+1.3.0.patch
23
- echo " END SNAPSHOT"
23
+ echo " check that the patch is created"
24
+ test -f patches/left-pad+1.3.0.patch || exit 1
24
25
}
25
26
26
27
echo " test lockfile v1"
Original file line number Diff line number Diff line change 1
1
import { runIntegrationTest } from "../runIntegrationTest"
2
- runIntegrationTest ( { projectName : "lockfile" , shouldProduceSnapshots : true } )
2
+ runIntegrationTest ( { projectName : "lockfile" , shouldProduceSnapshots : false } )
You can’t perform that action at this time.
0 commit comments