Skip to content

Commit

Permalink
[Tests] ensure the import tests spawn properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 27, 2023
1 parent 19af506 commit d1987c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/import.js
Expand Up @@ -9,7 +9,7 @@ var assign = require('object.assign');
function tape(args, options) {
var bin = __dirname + '/../bin/tape';

return spawn('node', [bin].concat(args.split(' ')), assign({ cwd: __dirname }, options));
return spawn(process.argv[0], [bin].concat(args.split(' ')), assign({ cwd: __dirname }, options));
}

tap.test('importing mjs files', function (t) {
Expand Down

0 comments on commit d1987c0

Please sign in to comment.