Skip to content

Fix test scripts for: add lockfileVersion 2+ packages support #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8 changes: 3 additions & 5 deletions integration-tests/lockfile/lockfile.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env bash

# make sure errors stop the script
set -e

echo "add patch-package"
npm i $1
alias patch-package=./node_modules/.bin/patch-package

echo "Add left-pad"
npm i [email protected]

testLockFile() {
echo "Version test $1"
npm i --lockfile-version $1
Expand All @@ -24,9 +25,6 @@ testLockFile() {
test -f patches/left-pad+1.3.0.patch || exit 1
}

echo "test lockfile v1"
testLockFile 1

echo "test lockfile v2"
testLockFile 2

Expand Down