diff --git a/package.json b/package.json index 0fdcaba5..57b00187 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/test/no_only.js b/test/no_only.js index 693ab110..d0f126ba 100644 --- a/test/no_only.js +++ b/test/no_only.js @@ -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