Commit 474085b6 authored by Mariano Fernández Cocirio's avatar Mariano Fernández Cocirio Committed by Tim Neutkens

Jest example updated (#3123)

* jest example updated

* reverted changes on yarn.lock
parent 47d3cfd0
{
"name": "with-jest",
"version": "1.0.0",
"jest": {
"setupFiles": [
"<rootDir>/shim.js"
]
},
"dependencies": {
"next": "latest",
"react": "^15.5.4",
"react-dom": "^15.5.4"
"react": "^16.0.0",
"react-dom": "^16.0.0"
},
"devDependencies": {
"enzyme": "^2.8.2",
"jest": "^20.0.0",
"react-addons-test-utils": "^15.5.1",
"react-test-renderer": "^15.5.4"
"jest": "^21.0.0",
"react-addons-test-utils": "^15.6.0",
"react-test-renderer": "^16.0.0"
},
"scripts": {
"test": "jest",
......@@ -18,4 +23,4 @@
"build": "next build",
"start": "next start"
}
}
}
\ No newline at end of file
global.requestAnimationFrame = callback => {
setTimeout(callback, 0)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment