question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🚀 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:closed
  • Created a year ago
  • Reactions:72
  • Comments:36 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
ahnpnlcommented, Apr 27, 2022

The warning has been reverted in #3466 😃

5reactions
Snaptagscommented, Apr 26, 2022

Thanks! Adding /legacy to something does not sound very future-proof, though 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found