-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
render does not work with jest coverage report. #622
Comments
sounds like an issue with how the --coverage flag instrumentation interacts with babel |
I had the same issue. Delete my lockfile, and installed packages again. Removed my problem |
@omBratteng unfortunately that didn't fix it for me. Thanks though. |
I have the same issues, even after deleting my lock file. |
After the latest I solved this by adding It looks weird, but maybe will help someone too. |
@prometium that didn't fix it for me either unfortunately. my jest.config.js already has |
so i still don't know what caused this to suddenly break for me, but changing the coverage provider and adding to my jest.config:
fixed the issue for me. I don't think this has anything to do with react-testing-library, so closing. |
Same Issue here ... Is there any way to solve this Problem when CRA is not ejected? |
When running tsx tests I get "Nothing was returned from render". testing-library/react-testing-library#622
@vishnu4 thanks, finally something that worked for me, I have already tried many solutions. @dkleber89 I saw some people downgraded the react-scripts version (link here) |
When running tsx tests I get "Nothing was returned from render". testing-library/react-testing-library#622
Do we know what the underlying issue here is? What changed in between CRA 3.4.0 & 3.4.1 that caused this to happen? Do we know if this issue will be resolved for the next CRA release? |
@testing-library/react
version:10.0.1
react
version:16.13.1
node
version:12.14.0
npm
(oryarn
) version:6.13.4
Relevant code or config:
What you did:
running
vs
What happened:
running jest by itself works fine, no issues. running jest with coverage gives me this error:
Reproduction:
Problem description:
Suggested solution:
i see this similar issue here jestjs/jest#6827 , but honestly i don't know if the issue lies with jest or with react-testing-library. downgrading jest from 25.1.0 to 24.9.0 does not seem to help though.
The text was updated successfully, but these errors were encountered: