Commit fc6d51c
authored
test(react): Ensure react router 3 tests always have correct types (#14949)
Noticed this failing every now and then locally. After looking into
this, I found this to be a bit weird anyhow:
1. We used react-router-5 types for react-router 4, seems off 🤔 I
adjusted this to v4
2. We used to add the `@types/react-router-v3` alias in package.json,
but this was not being picked up anyhow properly. The reason is that
this version of the types package basically re-exports a bunch of stuff
from a path like `react-router/lib` which our resolution then sometimes
(?) picks up from the v6 react-router package. Which is also why we had
to overwrite this somehow, which is what sometimes failed (?). Now, we
simply define these types in test/globals.d.ts properly, the same way as
before, but there should be no more conflicts and we can safe installing
one unecessary package.1 parent 2327642 commit fc6d51c
File tree
4 files changed
+32
-37
lines changed- packages/react
- test
4 files changed
+32
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 16 | | |
29 | 17 | | |
30 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10128 | 10128 | | |
10129 | 10129 | | |
10130 | 10130 | | |
10131 | | - | |
10132 | | - | |
10133 | | - | |
10134 | | - | |
| 10131 | + | |
| 10132 | + | |
| 10133 | + | |
| 10134 | + | |
10135 | 10135 | | |
10136 | 10136 | | |
10137 | 10137 | | |
| |||
10427 | 10427 | | |
10428 | 10428 | | |
10429 | 10429 | | |
10430 | | - | |
10431 | | - | |
10432 | | - | |
10433 | | - | |
10434 | | - | |
10435 | | - | |
10436 | | - | |
10437 | | - | |
10438 | | - | |
10439 | | - | |
10440 | | - | |
10441 | | - | |
| 10430 | + | |
| 10431 | + | |
| 10432 | + | |
| 10433 | + | |
10442 | 10434 | | |
10443 | 10435 | | |
10444 | 10436 | | |
10445 | 10437 | | |
10446 | | - | |
10447 | | - | |
10448 | | - | |
10449 | | - | |
| 10438 | + | |
| 10439 | + | |
| 10440 | + | |
| 10441 | + | |
10450 | 10442 | | |
10451 | | - | |
| 10443 | + | |
10452 | 10444 | | |
10453 | 10445 | | |
10454 | 10446 | | |
| |||
0 commit comments