mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-02 04:38:55 +00:00
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:
@@ -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 },",
|
||||
}],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user