-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't working with jsx: preserve #37
Comments
Inject maybe can help |
@polRk can i know whats your jest config? you try to include jsx in the config, thanks |
module.exports = {
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
transform: {
'^.+\\.tsx?$': [
'esbuild-jest',
{
sourcemap: true,
loaders: {
'.spec.tsx': 'tsx',
},
},
],
},
} |
It's the same error that I've reported about coverage failing, in your tests fails about semicolon but in large projects fails about React is not defined. |
I thin right now you can not use the |
Any update on this? |
Doesn't work with |
Maybe this repo can solve problem |
I've had better luck with this one so far |
tsconfig.json
Button.tsx
Error
The text was updated successfully, but these errors were encountered: