Skip to content

Commit afb8b7c

Browse files
committed
use RTL 13
1 parent c969d80 commit afb8b7c

File tree

3 files changed

+140
-409
lines changed

3 files changed

+140
-409
lines changed

examples/lazy-injection/kitchen-sink/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
"react-redux": "^9.0.4"
2424
},
2525
"devDependencies": {
26-
"@testing-library/dom": "^9.3.3",
2726
"@testing-library/jest-dom": "^6.1.6",
28-
"@testing-library/react": "^14.1.2",
27+
"@testing-library/react": "^13.3.0",
2928
"@testing-library/user-event": "^14.5.2",
3029
"@types/react": "^18.2.46",
3130
"@types/react-dom": "^18.2.18",

packages/toolkit/src/query/tests/buildHooks.test.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,10 +1503,6 @@ describe('hooks tests', () => {
15031503
expect(screen.getByTestId('isFetching').textContent).toBe('false')
15041504
)
15051505

1506-
await waitFor(() =>
1507-
expect(screen.getByTestId('isFetching').textContent).toBe('false')
1508-
)
1509-
15101506
expect(
15111507
api.endpoints.getUser.select(USER_ID)(storeRef.store.getState() as any)
15121508
).toEqual({
@@ -1643,10 +1639,6 @@ describe('hooks tests', () => {
16431639
expect(screen.getByTestId('isFetching').textContent).toBe('false')
16441640
)
16451641

1646-
await waitFor(() =>
1647-
expect(screen.getByTestId('isFetching').textContent).toBe('false')
1648-
)
1649-
16501642
expect(
16511643
api.endpoints.getUser.select(USER_ID)(storeRef.store.getState() as any)
16521644
).toEqual({

0 commit comments

Comments
 (0)