Replies: 1 comment
-
It is fixed. Don't know why but it seems that was dependency was updated that was related to that problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just updated react to version 19. My jest tests are failing with the message:
console.error Error: Uncaught [Error: Objects are not valid as a React child (found: object with keys {$$typeof, type, key, props, _owner, _store}). If you meant to render a collection of children, use an array instead.]
I mentioned this also here: testing-library/react-testing-library#1371
Not sure where it comes from. React App is working, just all tests are failing with this message.
my jest.config.js:
and the .swcrc:
component + test:
any ideas? Maybe it has something to do with the compiling? According to react team and their changelog they now force the new JSX transform: https://github.com/facebook/react/blob/main/CHANGELOG.md#react-1
Beta Was this translation helpful? Give feedback.
All reactions