Skip to content

Commit

Permalink
disable React 16 requestAnimationFrame warning in jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielres committed Oct 14, 2017
1 parent 438ffe6 commit 5da6929
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
"scripts": {
"start": "BROWSER=none PORT=3010 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom --verbose",
"test": "react-scripts test --env=jsdom --verbose --setupTestFrameworkScriptFile=raf/polyfill",
"test:features": "npm run start & sleep 3 && testcafe chromium:headless features/*.test.js; EXIT_CODE=$?; kill $!; exit $EXIT_CODE",
"test:once": "CI=true npm run test",
"eject": "react-scripts eject"
},
"devDependencies": {
"raf": "^3.4.0",
"testcafe": "^0.18.0"
}
}
6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5490,6 +5490,12 @@ querystringify@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-1.0.0.tgz#6286242112c5b712fa654e526652bf6a13ff05cb"

raf@^3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.0.tgz#a28876881b4bc2ca9117d4138163ddb80f781575"
dependencies:
performance-now "^2.1.0"

randomatic@^1.1.3:
version "1.1.7"
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c"
Expand Down

0 comments on commit 5da6929

Please sign in to comment.