Commit 3018db0
committed
fix: remove @testing-library/react-hooks and migrate to @testing-library/react-native
- Replaced react-hooks import with react-native renderHook/act in ThemeContext.test.tsx
- Replaced react-hooks import with react-native renderHook/act in useFilteredSubscriptions.test.ts
- Updated ThemeContext test 'throws outside provider' to match new error handling behavior
- Removed @testing-library/react-hooks from package.json (incompatible with React 19 types)
- All tests passing after migration1 parent edcb4af commit 3018db0
3 files changed
Lines changed: 5 additions & 50 deletions
File tree
- src
- context
- hooks/__tests__
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments