jest@28 support
See original GitHub issue🚀 Feature Proposal
Jest 28 has landed.
Doesn’t work with current ts-jest
as-is, gives this error:
FAIL src/test/env.test.ts
● Test suite failed to run
● Invalid return value:
Code transformer's `process` method must return an object containing `code` key
with processed string. If `processAsync` method is implemented it must return
a Promise resolving to an object containing `code` key with processed string.
Code Transformation Documentation:
https://jestjs.io/docs/code-transformation
at ScriptTransformer._buildTransformResult (node_modules/@jest/transform/build/ScriptTransformer.js:504:15)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:623:17)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:760:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:817:19)
Created this issue to track when jest28 support will land here.
Thanks.
Motivation
Example
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:72
- Comments:36 (2 by maintainers)
Top Results From Across the Web
Jest 28: Shedding weight and improving compatibility
Jest shipped minimal support of exports in 27.3. However, it only supported the "main" entry point ( . ), and only if no...
Read more >Angular >=13 | jest-preset-angular - GitHub Pages
jest -preset-angular currently supports testing with Jest in CommonJS mode with Angular 13 using default preset. info. With Jest 28 and jest-preset-angular v12....
Read more >ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. NPM version NPM downloads Known ......
Read more >@nrwl/jest | Nx
Jest has support for Snapshot Testing, a tool which simplifies validating data. Check out the official Jest Documentation on Snapshot Testing.
Read more >Making sense of Jest v28 ESM support | by Clint Goodman
Jest has some experimental support for loading ESM files. After reading their documentation, I figured what they were asking was not to use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The warning has been reverted in #3466 😃
Thanks! Adding
/legacy
to something does not sound very future-proof, though 😄