diff --git a/packages/jest-runtime/src/index.ts b/packages/jest-runtime/src/index.ts index 12df77844c6a..d04a22dc44e2 100644 --- a/packages/jest-runtime/src/index.ts +++ b/packages/jest-runtime/src/index.ts @@ -161,7 +161,7 @@ const supportsNodeColonModulePrefixInRequire = (() => { })(); const supportsNodeColonModulePrefixInImport = (() => { - const {stdout} = execa.sync( + const {stdout, stderr} = execa.sync( 'node', [ '--eval', @@ -170,6 +170,8 @@ const supportsNodeColonModulePrefixInImport = (() => { {reject: false}, ); + console.log('is supported???', {stdout, stderr}); + return stdout === 'true'; })();