-
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
Nothing was returned from render. #663
Comments
I ran into this problem today and after downgrade react-scripts from 3.4.1 to 3.4.0 I finally solve the problem. Here you can see more information that could be related: |
Downgrading |
I expect this to be the same as #660, so I'm going to close this as well. |
@kentcdodds I guess this one is different from #660 because here was only reported using |
downgrading react-scripts to version 3.4.0 and switching to yarn fixed this issue for me. |
same here. I changed react-scripts 3.4.1 to 3.4.0 and fixed. ps: don't forget to remove |
works but... what a fix. Thanks ! |
Do we know what the underlying issue here was? What changed in between CRA 3.4.0 & 3.4.1 that caused this to happen? Is it the minor bump for @babel/core? Do we know if this issue will be resolved for the next CRA release? |
Downgrading |
Any suggestions if I have ejected CRA? |
I ran into same problem today. After ejecting CRA and updating jest to version 25.
|
This problem is also happening in my pipeline, then I can't use the downgrade trick. Did anyone come up with a proper solution yet? |
Downgrading |
@kentcdodds, why close this ticket and #660 if it is not fixed yet? |
Because this project can't do anything about these issues. It's not related to React Testing Library. It's a problem with other tools. |
@testing-library/react
version: 9.5.0Relevant code or config:
Navigation.js (Not working)
Navigation.test.js
Navigation.js (Working)
What you did:
I just started testing the test-library and I created a very basic functional component like the one above. Then I ran the test file that comes with create-react-app (also given above). I should also add that I have also tried to generate a coverage report with
npm test -- --coverage
. Only when I try to generate a coverage report this error is thrown.What happened:
This error is thrown:
Reproduction:
I can create a repo if you need to but the only dependency I added was node-sass and mui-org/material-ui library and I haven't used them in this segment.
Problem description:
The weird thing is that if I give the component to be rendered via a variable it works. I'm guessing that this shouldn't be like this.
Suggested solution:
The text was updated successfully, but these errors were encountered: