-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
reportFile should allow TypeScript tests #6170
Comments
Note too in the react-scripts-ts fork this was supported so those of us migrating to CRA from there would expect this. |
This looks like a dupe of #5626 Our current workaround is to run |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Closing as dupe of #5626. |
Is this a bug report? No
I'm using CRA with TypeScript and followed the docs to integrate typescript.
My problem is that
npm run build
does not fail when there is a TypeScript error in the tests. I noticed that the webpack.config.js ignores errors in test files. See the reportFiles array. It would be awesome to report TypeScript errors in test files too so that a team can know if a change caused a TypeScript error in a test.Alternatively,
npm test
should report TypeScript errors.The text was updated successfully, but these errors were encountered: