Skip to content

Commit

Permalink
Merge pull request #96 from sharvit/fix/tests-polyfills
Browse files Browse the repository at this point in the history
test(polyfill): Fix the requestAnimationFrame warning when running tests
  • Loading branch information
priley86 authored Dec 6, 2017
2 parents 803fc66 + ec1885b commit 270a65c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"less-loader": "^4.0.5",
"patternfly": "^3.27.4",
"prettier": "^1.7.4",
"raf": "^3.4.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
Expand Down Expand Up @@ -85,6 +86,11 @@
"build-storybook": "build-storybook -c storybook -o .out",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"jest": {
"setupFiles": [
"./src/test.env.js"
]
},
"czConfig": {
"path": "node_modules/cz-conventional-changelog"
}
Expand Down
1 change: 1 addition & 0 deletions src/test.env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'raf/polyfill';

0 comments on commit 270a65c

Please sign in to comment.