Skip to content

Commit 931fff6

Browse files
committed
feat: update @testing-library/dom to latest
BREAKING CHANGE: upgrading @testing-library/dom from 6.x to 7.x
1 parent 102b505 commit 931fff6

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"contributors:generate": "all-contributors generate"
5050
},
5151
"dependencies": {
52-
"@testing-library/dom": "^6.1.0"
52+
"@testing-library/dom": "^7.16.2"
5353
},
5454
"devDependencies": {
5555
"@babel/cli": "^7.5.5",
@@ -60,27 +60,27 @@
6060
"@babel/preset-env": "^7.5.5",
6161
"@commitlint/cli": "^8.2.0",
6262
"@commitlint/config-conventional": "^8.2.0",
63-
"@testing-library/jest-dom": "^4.1.0",
64-
"@types/jest": "^24.0.18",
63+
"@testing-library/jest-dom": "^5.10.1",
64+
"@types/jest": "^26.0.0",
6565
"all-contributors-cli": "^6.9.0",
6666
"babel-eslint": "^10.0.3",
67-
"babel-jest": "^24.9.0",
67+
"babel-jest": "^26.0.1",
6868
"doctoc": "^1.4.0",
69-
"eslint": "^6.2.2",
69+
"eslint": "^7.3.0",
7070
"eslint-config-standard": "^14.1.0",
7171
"eslint-plugin-import": "^2.18.2",
72-
"eslint-plugin-node": "^10.0.0",
72+
"eslint-plugin-node": "^11.1.0",
7373
"eslint-plugin-promise": "^4.2.1",
74-
"eslint-plugin-react-hooks": "^2.0.1",
75-
"eslint-plugin-simple-import-sort": "^4.0.0",
74+
"eslint-plugin-react-hooks": "^4.0.4",
75+
"eslint-plugin-simple-import-sort": "^5.0.3",
7676
"eslint-plugin-standard": "^4.0.1",
77-
"husky": "^3.0.5",
78-
"jest": "^24.9.0",
79-
"jest-watch-typeahead": "^0.4.0",
80-
"lint-staged": "^9.2.5",
77+
"husky": "^4.2.5",
78+
"jest": "^26.0.1",
79+
"jest-watch-typeahead": "^0.6.0",
80+
"lint-staged": "^10.2.11",
8181
"preact": "^10.0.0-rc.1",
8282
"preact-portal": "^1.1.3",
83-
"prettier": "^1.18.2",
83+
"prettier": "^2.0.5",
8484
"rimraf": "^3.0.0"
8585
},
8686
"peerDependencies": {

src/__tests__/end-to-end.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, h } from 'preact'
22

3-
import { render, wait } from '..' // eslint-disable-line import/named
3+
import { render, waitFor } from '..' // eslint-disable-line import/named
44

55
const fetchAMessage = () => new Promise((resolve) => {
66
// we are using random timeout here to simulate a real-time example
@@ -39,7 +39,7 @@ test('it waits for the data to be loaded', async () => {
3939

4040
expect(queryByText('Loading...')).toBeTruthy()
4141

42-
await wait(() => expect(queryByText('Loading...')).toBeNull())
42+
await waitFor(() => expect(queryByText('Loading...')).toBeNull())
4343

4444
expect(queryByTestId('message').textContent).toMatch(/Hello World/)
4545
})

0 commit comments

Comments
 (0)