Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
node version when spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 8, 2021
1 parent 5154663 commit a9b3f99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jest-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,11 @@ const supportsNodeColonModulePrefixInImport = (() => {
],
{reject: false},
);
const {stdout: nodeVersion} = execa.sync('node', ['--version'], {
reject: false,
});

console.log('is supported???', {stdout, stderr});
console.log('is supported???', {nodeVersion, stderr, stdout});

return stdout === 'true';
})();
Expand Down

0 comments on commit a9b3f99

Please sign in to comment.