From 3e7b2ae9800964cf8461ab8dc10634d0c1b1218a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 25 Apr 2022 15:52:36 -0700 Subject: [PATCH] [Tests] fix no_only tests on Windows --- package.json | 2 +- test/no_only.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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