test: pin the fr entry to the fr dictionary via a live-bundle mutant (#371)

The entry-removed variant died at build time (tree-shaking drops the fr
chunk and the manifest emit guard refuses the bundle) — an infrastructure
failure, not a red guard. The mutant now swaps the fr entry to the German
loader instead: everything builds, parity units stay green, and only the
French smoke catches the wrong dictionary.

Issue: #371
User-Visible: no
This commit is contained in:
Codex
2026-08-29 13:39:22 +03:00
parent 89fa8ca588
commit 7f3e67bce0
+5 -5
View File
@@ -681,14 +681,14 @@ const MUTANT_DEFINITIONS = [
}],
},
{
id: 'french-locale-entry-removed',
id: 'french-locale-wrong-dictionary',
guard: 'node demo/smoke_french_locale.mjs',
because: 'dropping the fr registry entry silently reverts French profiles to English — the '
+ 'community contribution must stay wired (#371)',
because: 'a French profile silently reading another dictionary is invisible to parity units — '
+ '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 },\n",
replace: '',
find: " { code: 'fr', nativeLabel: 'Français', loadDictionary: loadFrench },",
replace: " { code: 'fr', nativeLabel: 'Français', loadDictionary: loadGerman },",
}],
},
{