Skip to content

Commit 133f00b

Browse files
committed
test: update test-npm to work with npm 3
1 parent dae9fae commit 133f00b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/test-npm.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export npm_config_prefix="npm-prefix"
2929
export npm_config_tmp="npm-tmp"
3030

3131
# install npm devDependencies and run npm's tests
32-
33-
../$NODE cli.js install --ignore-scripts
34-
../$NODE cli.js run-script test-legacy
35-
../$NODE cli.js run-script test
32+
NODEPATH="$(../$NODE -p 'require("path").resolve("..")')"
33+
PATH="$NODEPATH:$PATH" ../$NODE cli.js install --ignore-scripts
34+
PATH="$NODEPATH:$PATH" ../$NODE test/run.js
35+
PATH="$NODEPATH:$PATH" ../$NODE cli.js run-script tap -- "test/tap/*.js"
3636

3737
# clean up everything one single shot
3838
cd .. && rm -rf test-npm

0 commit comments

Comments
 (0)