You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .js files are correctly transformed but the .jsx files crashes hardly:
ReferenceError: React is not defined
at wrapper (test/utils.jsx:151:7)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:14985:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:17811:13)
When I run Jest without the --coverage argument, runs correctly =)
The text was updated successfully, but these errors were encountered:
semoal
changed the title
Coverage differs a lot from the babel coverage
Coverage differs a lot from the babel coverage and crashes on .jsx files
May 6, 2021
Hello another time =)
Just trying to be helpful and improve this transform as much as we can!
Running the command:
jest --coverage
:The same codebase with
@babel/core
,@babel/env
,@babel/react
, andbabel-jest
logs a coverage of:But if we replace the transformer to
esbuild-jest
:The .js files are correctly transformed but the .jsx files crashes hardly:
When I run Jest without the --coverage argument, runs correctly =)
The text was updated successfully, but these errors were encountered: