summaryrefslogtreecommitdiffhomepage
path: root/test/setup/renderer.js
blob: a1bd11a4d8c8d6b47f90d22bf76eaf39894f242d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const Enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');
const chai = require('chai');
const spies = require('chai-spies');
const chaiAsPromised = require('chai-as-promised');

chai.use(spies);
chai.use(chaiAsPromised);

Enzyme.configure({
  adapter: new Adapter(),
});

global.expect = chai.expect;
global.spy = chai.spy;