Skip to content

Commit

Permalink
[Tests] fix no_only tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 25, 2022
1 parent 7d31894 commit 3e7b2ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -74,7 +74,7 @@
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "aud --production",
"tests-only": "nyc tap test/*.js",
"tests-only": "nyc tap 'test/*.js'",
"test:example": "find example -name '*.js' | grep -v fail | grep -v static | xargs tap"
},
"testling": {
Expand Down
2 changes: 1 addition & 1 deletion test/no_only.js
Expand Up @@ -6,7 +6,7 @@ var exec = require('child_process').exec;

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

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

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

0 comments on commit 3e7b2ae

Please sign in to comment.