mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
981cf0a143
The guard in rtlText.ts had tests; the two lines that call it did not. setRTLTextPlugin appears at exactly two places in the client and no test touched either, so deleting a call, swapping an argument or dropping the deferred flag left the whole suite green. The engines are mocked because importing them for real builds a worker pool under jsdom, and the plugin URL is mocked so the payload never loads. The precache comment in vite.config.js was three releases stale, and it is the only record in the repo of what a service-worker install costs. A real build says 463 entries / 23,292 KiB, the plugin among them: it matches the js glob, so it is fetched at install by every user rather than on first RTL text as the branch description claims. That trade is the right one, since the alternative is a CDN the production CSP refuses and an unshaped map for anyone offline. Only the description of it was wrong. Measured against a real client build, which no CI workflow performs: none of them runs vite build or check:gl-split, so nothing here was covered before.