mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-30 11:49:16 +00:00
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:
@@ -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 };",
|
||||
}],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user