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
import{expect}from'chai';import{mount,describeWithDom}from'reagent';importReactfrom'react';importMySharonafrom'./MySharona.js';describeWithDom('MySharona',()=>{it('passes my test',()=>{constwrapper=mount(<MySharona/>);expect(wrapper.find('div').text).to.be('true');});});
Instead of getting a passing test, I get a horrible, horrible error, that crushes my soul and makes me sad:
Error: Invariant Violation: dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make surewindowanddocumentare available globally before requiring React when unit testing or use React.renderToString for server rendering.
The text was updated successfully, but these errors were encountered:
I have a component that looks like this:
I've got a test that looks like this:
Instead of getting a passing test, I get a horrible, horrible error, that crushes my soul and makes me sad:
Error: Invariant Violation: dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure
windowand
documentare available globally before requiring React when unit testing or use React.renderToString for server rendering.
The text was updated successfully, but these errors were encountered: