Commit 1b694f1
authored
Migrate away from
* chore: use patch-package to port renderHook to RTL v12
* chore: remove @testing-library/react-hooks dev dependency
* fix: update useFragment.test.tsx renderHook import
* fix: update useMutation.test.tsx
* fix: update useSubscription.test.tsx
* fix: update useLazyQuery.test.tsx
* fix: run mockSubscriptionLink, Mutation, ssr/server, and Subscription tests in React 18
* fix: run useReactiveVar test in React 18
* wip: useQuery
* fix: update useQuery.test.tsx
* fix: un-skip test in useMutation.test.tsx
* fix: comment out RenderResult import until remaining two tests are fixed
* fix(review): remove unused updates variable from useQuery test
* fix(review): return value inside waitFor, fix whitespace
* fix(review): use wait and tick utils
* fix(review): fix remaining test in useLazyQuery.test.tsx
* fix(review): fix failing test in useQuery.test.tsx
* fix(review): refactor two last tests in useQuery.test.tsx@testing-library/react-hooks (apollographql#10415)1 parent 1d5be2b commit 1b694f1
12 files changed
Lines changed: 2072 additions & 1291 deletions
File tree
- config
- patches
- src
- react
- components/__tests__/client
- hooks/__tests__
- testing/react/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 42 | + | |
53 | 43 | | |
54 | 44 | | |
55 | 45 | | |
| |||
0 commit comments