Invariant Violation error thrown when testing on Stateful Component · Issue #284 · enzymejs/enzyme · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using React 15.
I have a component which call setTimeout in componentWillMount, the function is similar to
When the timer is triggered, an error is thrown as follow
Invariant Violation: React DOM tree root should always have a node reference.
Here's a related issue on React
facebook/react#6232
Is there anyway I could prevent throwing error when testing, without using JSDOM?
Edit1:
this.setState(...)
to() => this.setState(...)
The text was updated successfully, but these errors were encountered: