test: keep the fr chunk emitted in the #371 mutant (wrong dictionary via en)

The loadGerman-swap mutant tree-shook src/i18n/fr.ts, so the manifest
emit guard failed the mutant BUILD instead of the guard smoke. The
mutant now keeps import('./fr') alive and returns the English
dictionary, which only demo/smoke_french_locale.mjs can catch.

User-Visible: no
Issue: #371
This commit is contained in:
Codex
2026-08-29 13:39:22 +03:00
parent 7f3e67bce0
commit c7dfd712b8
+2 -2
View File
@@ -687,8 +687,8 @@ const MUTANT_DEFINITIONS = [
+ 'only the bundle smoke proves the fr entry loads the fr chunk (#371)',
patches: [{
file: 'src/i18n/registry.ts',
find: " { code: 'fr', nativeLabel: 'Français', loadDictionary: loadFrench },",
replace: " { code: 'fr', nativeLabel: 'Français', loadDictionary: loadGerman },",
find: " : await import(/* @vite-ignore */ new URL(`${FRENCH_RETRY_ASSET}?retry`, import.meta.url).href);\n return { dictionary: module.dictionary, fingerprint: module.fingerprint };",
replace: " : await import(/* @vite-ignore */ new URL(`${FRENCH_RETRY_ASSET}?retry`, import.meta.url).href);\n void module.dictionary;\n return { dictionary: en, fingerprint: module.fingerprint };",
}],
},
{