We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package.json
{ "scripts": { "test": "jest ./tests", "test:ts": "jest -c jest.tsc.config.js" }, "jest-runner-tsc": { "tsconfigPath": "./tsconfig.json" } }
jest: 27.4.7 jest-runner-tsc: 1.6.0
jest
27.4.7
jest-runner-tsc
1.6.0
jest.tsc.config.js
module.exports = { runner: 'jest-runner-tsc', displayName: 'tsc', moduleFileExtensions: ['js', 'jsx','ts', 'tsx'], testMatch: ['<rootDir>/tests/*.tsx'], };
tsconfig.json
{ "compileOnSave": false, "module": "ESNext", "target": "ESNext", "compilerOptions": { "strict": true, "noEmit": true, "declaration": true, "moduleResolution": "node", "esModuleInterop": true }, "include": ["package/*.ts", "test/*.tsx"] }
Running yarn test is working fine!!!
yarn test
However running yarn test:ts an error is fired: Cannot use JSX unless the '--jsx' flag is provided.. When do I need to add this --jsx flag?
yarn test:ts
Cannot use JSX unless the '--jsx' flag is provided.
--jsx
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
package.json
jest
:27.4.7
jest-runner-tsc
:1.6.0
jest.tsc.config.js
tsconfig.json
Running
yarn test
is working fine!!!However running
yarn test:ts
an error is fired:Cannot use JSX unless the '--jsx' flag is provided.
. When do I need to add this--jsx
flag?Thanks
The text was updated successfully, but these errors were encountered: