Quantcast
Channel: Material-UI withStyles components wont render when testing with Enzyme + Jest - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Matt Dalzell for Material-UI withStyles components wont render when...

Since you are wrapping the component in an HOC, you'll need to dive it in order to access your inner component beyond the HOC. This can be set when calling createShallow: beforeEach(() => {...

View Article



Material-UI withStyles components wont render when testing with Enzyme + Jest

I am trying to test a component. The test worked without styling, but now that I've styled it with Material-UI, the test no longer works. It seems the component, if styled with Material-UI will only...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images