Fix CSS module name collisions in shared-components Vitest (#33116)

This commit is contained in:
Zack
2026-04-13 15:34:23 +02:00
committed by GitHub
parent 273a891b7b
commit 9e47271afe
46 changed files with 1730 additions and 1730 deletions
+2 -2
View File
@@ -142,8 +142,8 @@ export default defineConfig({
},
css: {
modules: {
// Stabilise snapshots by stripping the hash component of the CSS module class name
generateScopedName: (name) => name,
// Stabilise snapshots while keeping names distinct across CSS modules.
generateScopedName: "[name]_[local]",
},
},
},