mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(start-plugin-core): pin dev import-protection bugs (factory lookup, Rsbuild module types, throwing onViolation)
Pins (each verified red for the bug as a plain test): - REPORT §6 #4 (ip-vite B3): in Vite dev with behavior "error", a server fn factory module calling a denied import at the top level loads silently (`serverFnLookupModules` keys by path without the lookup query). Red: the load resolves ('loaded'). Control: the same call in another module fails to load. The mock-mode counterpart passes (dev.test.ts V4(b)). - #2 (ip-rsbuild R2): Rsbuild dev never checks importers of non-JS module types (`.mdx`-like): a denied file is mocked but not reported, a denied specifier's real code runs. Red: reported [] (and ranRealCode true). Flipped by spc:7307 and 7168 (denied-file row). - #23: an `onViolation` that throws hangs the Rsbuild dev compile. Bounded wait (compileTimeout 3 s); red: "Rsbuild did not compile the app within 3000 ms"; the harness closes the server afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
20c891a337
commit
c079f2e351
1 changed files with 174 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue