From 8253a95498a020e74b50768b0cda8032b2043c6b Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Aug 06 2020 08:50:51 +0000 Subject: 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. --- 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