Closed EphraimB closed 4 months ago
Deciphered from your log:
app.ts: 21:46 - error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.
21 const __dirname = fileURLToPath(new URL('.', import.meta.url));
~~~~~~~~~~~
app.ts:31:1 - error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.
31 await initializeBree();
~~~~~
I've noticed TypeScript errors aren't being formatted and printed to the console when run by ts-jest.
Any updates on this?
Hi @EphraimB @ckrauterlovescoffee do you still experience the issue? Are you running Jest in ESM mode?
I'm migrating my code away from express to NestJS so this issue doesn't affect me anymore.
i will close this issue for now. If anyone still experiences the issue with latest version, pls feel free to open another issue.
Version
29.1.1
Steps to reproduce
Expected behavior
I expect the test to pass
Actual behavior
Test fails without an error message
Debug log
ts-jest.log
Additional context
The production code runs. It's just the test that passes.
Environment