mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(router-plugin): judge split modules by what the route loads and ships
- Pipeline (audit V6, V7, V8): no test imports an emitted module by its id with a cache-busting query (Vite strips it from file ids; real requests with it are covered by the edit tests); module labels do not depend on request order; the directive check uses a unique marker and string values skip module specifiers. - groups() (ruling 2026-10-24, R2): a module that only imports and re-exports does not split a group; a new file of the app does. - Unused code (ruling 2026-10-24, R10): the dead-code page tests check the production bundle (RouteApp.production(), markers) instead of import specifiers of emitted modules. - Vacuous checks: requested() lists app modules by path; servedImports includes literal dynamic imports; readsImport sees default, namespace and re-exported bindings; the bindings pin uses servedImports; servedGraph follows virtual modules. - R15: page tests that require no errors count uncaught ones only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a7ad71eff6
commit
2701ac7ba0
7 changed files with 220 additions and 190 deletions
Loading…
Add table
Add a link
Reference in a new issue