Skip to content

Commit 754061f

Browse files
iarnaFishrock123
authored andcommitted
tools: update npm test tooling for 3.3.10+
PR-URL: #3599 Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent 827ee49 commit 754061f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/test-npm.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ export npm_config_tmp="$(pwd)/npm-tmp"
3030

3131
# ensure npm always uses the local node
3232
export PATH="$(../$NODE -p 'require("path").resolve("..")'):$PATH"
33+
unset NODE
3334

35+
# make sure the binaries from the non-dev-deps are available
36+
node cli.js rebuild
3437
# install npm devDependencies and run npm's tests
35-
../$NODE cli.js install --ignore-scripts
36-
../$NODE test/run.js
37-
../$NODE cli.js run-script tap -- "test/tap/*.js"
38+
node cli.js install --ignore-scripts
39+
# run the tests
40+
node cli.js run-script test-node
3841

3942
# clean up everything one single shot
4043
cd .. && rm -rf test-npm

0 commit comments

Comments
 (0)