Skip to content

Commit 9e129dc

Browse files
committed
chore: upgrade dependencies and tests
1 parent 13c5a27 commit 9e129dc

File tree

3 files changed

+230
-149
lines changed

3 files changed

+230
-149
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"@testing-library/jest-dom": "^4.0.0",
2222
"@testing-library/react": "^8.0.1",
2323
"@types/jest": "^24.0.15",
24-
"@types/react": "^16.8.6",
24+
"@types/react": "^17.0.0",
25+
"@types/react-dom": "^17.0.0",
2526
"gulp": "^4.0.2",
2627
"gulp-clean": "^0.4.0",
2728
"jest": "^24.8.0",
28-
"react": "^16.8.6",
29-
"react-dom": "^16.8.6",
29+
"react": "^17.0.0",
30+
"react-dom": "^17.0.0",
3031
"ts-jest": "^24.0.2",
3132
"typescript": "^3.5.2",
3233
"use-debounce": "^2.1.0"

src/__tests__/main.test.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,15 @@ test('with debounce', async function () {
7676
change()
7777
})
7878
expect(renderer.asFragment()).toMatchSnapshot()
79-
change()
80-
change()
81-
change()
79+
act(() => {
80+
change()
81+
})
82+
act(() => {
83+
change()
84+
})
85+
act(() => {
86+
change()
87+
})
8288
await new Promise((resolve) => {
8389
setTimeout(resolve, 1000)
8490
})

0 commit comments

Comments
 (0)