mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
ed2618a1ae
Addresses review comments from PR #690: 1. Extract waitForHydration helper into shared location (tests/e2e/helpers.ts) - Adds waitForAppRouterHydration() using expect().toPass() pattern - Updates 19 App Router test files to use shared helper - Removes ~100 lines of duplicated code across test suite - Standardizes on Pattern A (expect().toPass) for better error messages 2. Apply ??= operator syntax nit in navigation.ts - Replaces if (!x) { x = {...} } with x ??= {...} - Cleaner, idiomatic TypeScript for lazy initialization Type check and E2E verification passed.