Skip to content

Commit

Permalink
chore(using-jest): Update jest.setup (#16615)
Browse files Browse the repository at this point in the history
* Update jest.setup requires

- jest-dom moved 
testing-library/dom-testing-library#260
- cleanup-after-each is no longer required 
https://github.com/testing-library/react-testing-library/blob/master/cleanup-after-each.js

* update dependencies
  • Loading branch information
NerdCowboy authored and GatsbyJS Bot committed Aug 14, 2019
1 parent c53640d commit 2c83b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/using-jest/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require(`jest-dom/extend-expect`)
require(`@testing-library/react/cleanup-after-each`)
require(`@testing-library/jest-dom/extend-expect`)
6 changes: 3 additions & 3 deletions examples/using-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"test": "jest"
},
"devDependencies": {
"@testing-library/react": "^8.0.5",
"@testing-library/jest-dom": "^4.0.0",
"@testing-library/react": "^9.1.1",
"babel-jest": "^24.0.0",
"babel-preset-gatsby": "^0.1.6",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.0.0",
"jest-dom": "^3.0.0"
"jest": "^24.0.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2c83b40

Please sign in to comment.