Open cmolina opened 2 years ago
When I have this configuration with inject:
inject
// jest.config.js module.exports = { transform: { '^.+\\.tsx?$': ['jest-esbuild', { inject: ['react-shim.js'] }], }, }
it fails with this error:
$ jest Transform failed with 1 error: /Users/cmolina/my-app/node_modules/jest-esbuild/node_modules/esbuild/lib/main.js:256:12: error: Invalid option in transform() call: "inject"
Although I can't use inject, I was able to use jsx: 'automatic', which has the same effect.
jsx: 'automatic'
When I have this configuration with
inject
:it fails with this error: