ui_migration feature(vitest) Add setup for mock localStorage, a .spec.js file that loads all components for testing

This commit is contained in:
Antonio Anaya 2026-06-05 13:28:08 -06:00 committed by Antonio Anaya
parent 9b12d5ca52
commit 3cc5875fdf
3 changed files with 275 additions and 0 deletions

View file

@ -18,6 +18,8 @@ export default defineConfig({
],
test: {
// Set localStorage mock
setupFiles: ["./src/tests/unit/setup.js"],
// CSS is disabled for now, the test loads the DOM without styles.
css: false,
pool: "forks",