r/reactjs • • May 03 '18

Beginner's Thread / Easy Question (May 2018)

Pretty happy to see these threads getting a lot of comments - we had over 200 comments in last month's thread! If you didn't get a response there, please ask again here!

Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.

The Reactiflux chat channels on Discord are another great place to ask for help as well.

25 Upvotes

267 comments sorted by

View all comments

Show parent comment

1

u/coolbox4life May 28 '18

This works for me? I'm assuming you use jest & enzyme, and configure it like this:

import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });