-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot convert undefined or null to object. #750
Comments
Hi! I have the same problem |
Can you share the test code? |
|
Which line corresponds to |
the last one |
That implies something wrong with the |
There is mock for files(svg, png). Everything else is just basic. As i said it works with |
What's the implementation of |
|
Hi, maybe I have the same problem
|
Might be a jest thing. What version of jest, and do you have any mocks set up? |
Hi, same here. My jest version is 18.1.0. The account list is not null or undefined The exception happens to the second line of the code:
|
where does |
it's from https://www.npmjs.com/package/enzyme-to-json .. BTW, ErrorPro's example also has |
The error message is:
BTW, I will file another issue to enzyme-to-json and link both of them. |
Looks like this is an issue with jest, not enzyme. |
Hi. I am using Jest with Enzyme. I have a component wrapped by few components(Provider, Intl, Relay). When i try to render the component with
render
function and then call.toMatchSnapshot
it works perfect. But when i callmount
instead ofrender
it fails. The stack trace is:The reason why i am calling
mount
that i need set props to the component.Perhaps the problem is not in enzyme but in
worker-farm
lib. Anyway any help will be appreciated.The text was updated successfully, but these errors were encountered: