-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
react-scripts v5 type checks test files when running start command #11979
Labels
Comments
Same issue here, and adding to that, where normally So I think there is some config difference when the tests are ran, it might ignore linting plugins? Or those plugins are outdated and don't support test env? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When upgrading to react-scripts v5, and running
react-scripts start
orreact-scripts build
any.test.ts
or.spec.ts
file with type errors are reported to the build process and the build fails.Did you try recovering your dependencies?
I started a fresh project to reproduce the error and the bug still exists
Which terms did you search for in User Guide?
Typescript, types, tests.
Environment
Steps to reproduce
npx create-react-app my-app --template typescript
src/App.test.tsx
npm run build
Expected behavior
Type errors should be ignored in test files when running or building app code.
Actual behavior
Type errors are reported in test files when running or building app code.
Reproducible demo
https://github.com/jwalton9/cra-test-type-error
The text was updated successfully, but these errors were encountered: