Commit cef38a9
committed
fix(test): BVG radar test - make mode-aware for E2E/integration
BVG's radar API doesn't return movements for future timestamps,
which caused E2E test failures when using createWhen() (calculates
next Monday from Date.now()).
Solution: Make test mode-aware:
- Integration tests (VCR_MODE): Use `when` with full validation
- E2E tests (live API): Omit `when`, use basic validation
This maintains integration test compatibility with recorded fixtures
while fixing E2E tests against the live BVG API.1 parent d24d2e3 commit cef38a9
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
387 | 397 | | |
388 | 398 | | |
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
397 | 413 | | |
398 | 414 | | |
399 | 415 | | |
| |||
0 commit comments