Skip to content

Instantly share code, notes, and snippets.

@vitkon
Created February 19, 2018 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitkon/07f77683042cdd183aa366e9fdf2f904 to your computer and use it in GitHub Desktop.
Save vitkon/07f77683042cdd183aa366e9fdf2f904 to your computer and use it in GitHub Desktop.
Poi article files
import { configure } from 'enzyme';
import * as Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
@visormatt
Copy link

I believe this should be import Adapter from 'enzyme-adapter-react-16'; as its gives me an error that Adapter is not a constructor 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment