Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
"test": "nyc mocha --recursive --require test/setup.test.js --recursive --timeout 15000",
import 'jsdom-global/register';
const enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-15.4');
const chai = require('chai');
const sinon = require('sinon');
const React = require('react');
enzyme.configure({ adapter: new Adapter() });
global.expect = chai.expect;
global.assert = chai.assert;
global.sinon = sinon;
global.React = React;
global.shallow = enzyme.shallow;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.