Skip to content

Commit 3e7b2ae

Browse files
committed
[Tests] fix no_only tests on Windows
1 parent 7d31894 commit 3e7b2ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"pretest": "npm run lint",
7575
"test": "npm run tests-only",
7676
"posttest": "aud --production",
77-
"tests-only": "nyc tap test/*.js",
77+
"tests-only": "nyc tap 'test/*.js'",
7878
"test:example": "find example -name '*.js' | grep -v fail | grep -v static | xargs tap"
7979
},
8080
"testling": {

test/no_only.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var exec = require('child_process').exec;
66

77
var stripFullStack = require('./common').stripFullStack;
88

9-
var tapeBin = path.join(__dirname, '../bin/tape');
9+
var tapeBin = 'node ' + path.join(__dirname, '../bin/tape');
1010

1111
var expectedExitCodeFailure = (/^0\.10\.\d+$/).test(process.versions.node);
1212
var expectedStackTraceBug = (/^3\.[012]\.\d+$/).test(process.versions.node); // https://github.com/nodejs/node/issues/2581

0 commit comments

Comments
 (0)