We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0195835 commit fef61dfCopy full SHA for fef61df
test/setup.js
@@ -1,6 +1,6 @@
1
+import raf from './tempPolyfills'
2
import { jsdom } from 'jsdom'
3
-process.env.NODE_ENV = 'TESTING'
4
global.document = jsdom('<!doctype html><html><body></body></html>')
5
global.window = document.defaultView
6
global.navigator = global.window.navigator
test/tempPolyfills.js
@@ -0,0 +1,5 @@
+const raf = global.requestAnimationFrame = (cb) => {
+ setTimeout(cb, 0)
+}
+
+export default raf
0 commit comments