diff --git a/test/mocha.opts b/test/mocha.opts index 95de155b3..59ef4a5d2 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -3,6 +3,6 @@ test/**/*_test.js --require mock-css-modules --require babel-register --require=env-test ---require jsdom-global/register --require test/support/js/test_helper.js +--require jsdom-global/register --reporter dot diff --git a/test/support/js/test_helper.js b/test/support/js/test_helper.js index 102a96d32..74fb069c8 100644 --- a/test/support/js/test_helper.js +++ b/test/support/js/test_helper.js @@ -12,6 +12,10 @@ Enzyme.configure({ adapter: new Adapter() }) global.hj = noop global.expect = expect +global.requestAnimationFrame = callback => { + setTimeout(callback, 0) +} + global.mountWithConnectedSubcomponents = (component, options) => { const store = { subscribe: () => {},