Skip to content

Instantly share code, notes, and snippets.

@janhesters
Created September 16, 2018 18:29
Show Gist options
  • Save janhesters/bc3323a53e77da1483dac251cbcb7bf0 to your computer and use it in GitHub Desktop.
Save janhesters/bc3323a53e77da1483dac251cbcb7bf0 to your computer and use it in GitHub Desktop.
import Enzyme from "enzyme";
import Adapter from "enzyme-adapter-react-16";
global.fetch = require("jest-fetch-mock");
Enzyme.configure({ adapter: new Adapter() });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment