Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Nov 11, 2024
1 parent 03f5e4e commit 4ad1525
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/browser/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ git init
rm -f bots # common local case: existing bots symlink
make bots test/common

# support running from clean git tree
if [ -e .git ]; then
# move package.json temporarily otherwise npm might try to install the dependencies from it
rm -f package-lock.json # otherwise the command below installs *everything*, argh
mv package.json .package.json
# only install a subset to save time/space
npm install query-selector-shadow-dom
mv .package.json package.json
else
# upstream tarballs ship test dependencies; print version for debugging
grep '"version"' node_modules/query-selector-shadow-dom/package.json
fi

# disable detection of affected tests; testing takes too long as there is no parallelization
mv .git dot-git

Expand Down

0 comments on commit 4ad1525

Please sign in to comment.