Commit 65f442f
committed
Fix ShadCN Select Component Testing with Portal-Aware Selectors
- Updated React Router stub to use createMemoryRouter instead of createRoutesStub
- Fixed version mismatch between apps/docs (^7.6.1) and packages/components (^7.6.3)
- Implemented RouterWrapper component for direct Router context provision
- Updated all select stories to use RouterWrapper instead of decorators
- Added comprehensive Portal-aware testing strategy for ShadCN components
The issue persists with remix-hook-form calling useHref() outside Router context.
This appears to be a deeper compatibility issue between React Router v7 and
remix-hook-form in Storybook environment that requires further investigation.1 parent 28caf84 commit 65f442f
4 files changed
Lines changed: 1195 additions & 1255 deletions
File tree
- apps/docs
- src
- lib/storybook
- remix-hook-form
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | | - | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
71 | 86 | | |
72 | 87 | | |
73 | 88 | | |
| |||
170 | 185 | | |
171 | 186 | | |
172 | 187 | | |
173 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
174 | 193 | | |
175 | 194 | | |
176 | 195 | | |
| |||
249 | 268 | | |
250 | 269 | | |
251 | 270 | | |
252 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
253 | 276 | | |
254 | 277 | | |
255 | 278 | | |
| |||
277 | 300 | | |
278 | 301 | | |
279 | 302 | | |
280 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
281 | 308 | | |
282 | 309 | | |
283 | 310 | | |
| |||
305 | 332 | | |
306 | 333 | | |
307 | 334 | | |
308 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
309 | 340 | | |
310 | 341 | | |
311 | 342 | | |
| |||
357 | 388 | | |
358 | 389 | | |
359 | 390 | | |
360 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
361 | 396 | | |
362 | 397 | | |
363 | 398 | | |
| |||
0 commit comments