committed by
GitHub
4 changed files with 3 additions and 57 deletions
@ -1 +0,0 @@ |
|||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000; |
|||
@ -1,16 +0,0 @@ |
|||
/* eslint-disable import/first */ |
|||
global.requestAnimationFrame = |
|||
global.requestAnimationFrame || function requestAnimationFrame(callback) { |
|||
setTimeout(callback, 0); |
|||
}; |
|||
import { JSDOM } from 'jsdom'; |
|||
import Enzyme from 'enzyme'; |
|||
import Adapter from 'enzyme-adapter-react-16'; |
|||
|
|||
Enzyme.configure({ adapter: new Adapter() }); |
|||
|
|||
// fixed jsdom miss
|
|||
const documentHTML = '<!doctype html><html><body><div id="root"></div></body></html>'; |
|||
global.document = new JSDOM(documentHTML); |
|||
global.window = document.defaultView; |
|||
global.navigator = global.window.navigator; |
|||
@ -1 +0,0 @@ |
|||
module.exports = {}; |
|||
Loading…
Reference in new issue