File tree Expand file tree Collapse file tree 3 files changed +6
-147
lines changed
integration-tests/lockfile Expand file tree Collapse file tree 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+
13# make sure errors stop the script
24set -e
35
46echo " add patch-package"
57npm i $1
68alias patch-package=./node_modules/.bin/patch-package
79
8- function testLockFile() {
10+ testLockFile () {
911 echo " Version test $1 "
1012 npm i --lockfile-version $1
1113
@@ -18,9 +20,8 @@ function testLockFile() {
1820 echo " patch-package should run"
1921 patch-package left-pad
2022
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
2425}
2526
2627echo " test lockfile v1"
Original file line number Diff line number Diff line change 11import { 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