Closed magicmark closed 2 months ago
Hmm i'm actually seeing this reproing outside of ts-jest, maybe i'm in the wrong place...
src/bar.ts
async function main() {
const foo = await import('./foo.js');
console.log(foo);
}
main();
$ npx tsc && node build/bar.js
produces the same output 😢
Looks like this is just a typescript config issue: https://github.com/tsconfig/bases/issues/273
Version
29.2.1
Steps to reproduce
foo.ts
foo.test.ts
Repro link on github: https://github.com/magicmark/ts-jest-repro-1
You can run it in stackblitz here:
$ node --experimental-vm-modules node_modules/.bin/jest
Actual vs Expected behavior
This produces the following output:
Expected behavior is that it produces the following output:
Debug log
https://i.fluffy.cc/j8klVXNFT1pr5733Hq1SBcz1Q3N6Z6PH.html
Additional context
No response
Environment