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
Now that CRA includes a test npm script, with a test environment variable, can #180 be revisited with a test webpack config to enable enzyme usage out of the box?
The text was updated successfully, but these errors were encountered:
importReactfrom'react';import{shallow}from'enzyme';importAppfrom'./App';it('renders welcome message',()=>{constwrapper=shallow(<App/>);constwelcome=<h2>Welcome to React</h2>;expect(wrapper.contains(welcome)).toEqual(true);});
Ah, despite my best efforts to make sure I could reliably repro before opening an issue, I blanked and missed installing react-addons-test-utils in my repro process. I'll close, thanks!
Now that CRA includes a test npm script, with a
test
environment variable, can #180 be revisited with a test webpack config to enable enzyme usage out of the box?The text was updated successfully, but these errors were encountered: