Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
How do I use jest.mock ? #38
sure, i posted the issue at the Material-UI repo w/ the error output
after some research, it looks like there's a bug in React that prevents snapshot testing of components that rely on
when i make a regular
here's the error output for the
Thanks for the detailed information!
I understand the problem now and have reproduced it myself. I can implement a permanent solution once react 15.4 is out with facebook/react#7649. Unfortunately, until then I am not sure what I can do about this :(
It will be better to wait for 15.4 and do a good solution than doing something hacky right now. But I will look a bit into this.