From 8253a95498a020e74b50768b0cda8032b2043c6b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 6 Aug 2020 10:50:51 +0200 Subject: [PATCH] test: Avoid npm install downloading everything In the presence of a package-lock.json, `npm install` apparently downloads all packages even when giving explicit ones on the CLI. Avoid that by removing package-lock.json before. --- tests/run-test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run-test.sh b/tests/run-test.sh index c05d78d..5e9f2f4 100755 --- a/tests/run-test.sh +++ b/tests/run-test.sh @@ -7,6 +7,7 @@ git init make bots test/common # only install a subset to save time/space +rm -f package-lock.json # otherwise the command below installs *everything*, argh npm install chrome-remote-interface sizzle . /etc/os-release