Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate away from @testing-library/react-hooks #10415

Merged
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d9639a2
chore: use patch-package to port renderHook to RTL v12
alessbell Jan 6, 2023
84bf54a
chore: remove @testing-library/react-hooks dev dependency
alessbell Jan 6, 2023
9c0ec5e
fix: update useFragment.test.tsx renderHook import
alessbell Jan 6, 2023
04c62e8
fix: update useMutation.test.tsx
alessbell Jan 6, 2023
3803bb9
fix: update useSubscription.test.tsx
alessbell Jan 6, 2023
cab8056
fix: update useLazyQuery.test.tsx
alessbell Jan 6, 2023
7398e42
fix: run mockSubscriptionLink, Mutation, ssr/server, and Subscription…
alessbell Jan 6, 2023
54b02cd
fix: run useReactiveVar test in React 18
alessbell Jan 6, 2023
cfc11a6
wip: useQuery
alessbell Jan 6, 2023
e6dc80d
fix: update useQuery.test.tsx
alessbell Jan 6, 2023
4a2adc3
fix: un-skip test in useMutation.test.tsx
alessbell Jan 6, 2023
d10286b
fix: comment out RenderResult import until remaining two tests are fixed
alessbell Jan 6, 2023
b3f12e6
Merge branch 'main' into issue-10333-migrate-away-from-testing-librar…
alessbell Jan 9, 2023
015e7a1
fix(review): remove unused updates variable from useQuery test
alessbell Jan 9, 2023
e68fd12
fix(review): return value inside waitFor, fix whitespace
alessbell Jan 9, 2023
16e2546
fix(review): use wait and tick utils
alessbell Jan 9, 2023
6d1a204
fix(review): fix remaining test in useLazyQuery.test.tsx
alessbell Jan 9, 2023
583e39c
fix(review): fix failing test in useQuery.test.tsx
alessbell Jan 9, 2023
dc6dafa
fix(review): refactor two last tests in useQuery.test.tsx
alessbell Jan 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ const react18TestFileIgnoreList = [
// to avoid running them twice with both react versions
// since they do not import react
ignoreTSFiles,
// failing subscriptionLink test (1)
'src/testing/react/__tests__/mockSubscriptionLink.test.tsx',
// failing hoc tests (8)
'src/react/hoc/__tests__/mutations/queries.test.tsx',
'src/react/hoc/__tests__/mutations/recycled-queries.test.tsx',
Expand All @@ -41,15 +39,7 @@ const react18TestFileIgnoreList = [
'src/react/hoc/__tests__/queries/observableQuery.test.tsx',
'src/react/hoc/__tests__/queries/skip.test.tsx',
'src/react/hoc/__tests__/subscriptions/subscriptions.test.tsx',
// failing hooks tests (4)
'src/react/hooks/__tests__/useMutation.test.tsx',
'src/react/hooks/__tests__/useQuery.test.tsx',
'src/react/hooks/__tests__/useReactiveVar.test.tsx',
'src/react/hooks/__tests__/useSubscription.test.tsx',
// failing components tests (4)
'src/react/components/__tests__/ssr/server.test.tsx',
'src/react/components/__tests__/client/Subscription.test.tsx',
'src/react/components/__tests__/client/Mutation.test.tsx',
// failing components tests (1)
'src/react/components/__tests__/client/Query.test.tsx',
];

Expand Down
Loading