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.

Which feature you want to improve? The migration guide includes some breaking changes, one of which is the return value of custom tranformers. They now need to return an object { code: '...' } instead of a string.

What and why you want to improve that feature Jest Preview is compatible with Jest 27. We need to support the latest version (which was just released) as well.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thanhsonngcommented, May 21, 2022

About the question of whether Jest < 28 works with { code } as the return value’s shape of process.

The answer is yes. I looked into Jest version 24.0.0 (just to be sure. CRA 4 uses Jest 26.6.0 actually), and it does support that interface, all the way up to version 28.

Screen Shot 2022-05-22 at 00 32 07 Screen Shot 2022-05-22 at 00 35 23
0reactions
nvh95commented, May 21, 2022

@thanhsonng Would you want to open a PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest 28: Shedding weight and improving compatibility
Jest 28 is finally here, and it comes with some long requested features such as support for sharding a test run across multiple...
Read more >
jest@28 support · Issue #3453 · kulshekhar/ts-jest - GitHub
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 ......
Read more >
ESM Support | ts-jest - GitHub Pages
To use ts-jest with ESM support: ... Starting from v28.0.0, ts-jest will gradually switch to esbuild / swc to transform ts to js...
Read more >
jest - npm
Delightful JavaScript Testing.. Latest version: 29.3.1, last published: 2 months ago. Start using jest in your project by running `npm i ...
Read more >
Making sense of Jest v28 ESM support | by Clint Goodman
Making sense of Jest v28 ESM support. Image used from jestjs.io. There is a trend to make NPM modules ESM only. I've ran...
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