Commit afac822
committed
fix(journey-client,device-client): fix AbortSignal cross-realm failure on Node 24
Node 24 tightened undici's instanceof AbortSignal check. When vitest runs
under jsdom, RTK's createAsyncThunk picks up jsdom's AbortController, producing
a signal that fails instanceof in native fetch.
Switch both store test files to @vitest-environment node. The redirect test
that needed window.location.assign is updated to use vi.stubGlobal instead
of vi.spyOn so it works without a DOM environment.1 parent 65c91fa commit afac822
2 files changed
Lines changed: 4 additions & 5 deletions
File tree
- packages
- device-client/src/lib
- journey-client/src/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 208 | + | |
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
| |||
216 | 214 | | |
217 | 215 | | |
218 | 216 | | |
219 | | - | |
| 217 | + | |
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
| |||
0 commit comments