Set up and build automated tests for the expense-analyser Vue project using the best-fit framework for its stack. Use when adding a test suite from scratch or expanding coverage for src/components, src/stores, src/services, src/router, and TypeScript models in this Vite + Vue 3 codebase.
Use Vitest + @vue/test-utils + jsdom as the default testing framework for this project.
Read references/project-testing-strategy.md before implementation.
Use templates from assets/ for setup and first tests.
vitest, @vitest/coverage-v8, @vue/test-utils, jsdom.npm as package manager to match existing lockfile.vite.config.ts with a test block or create vitest.config.ts.package.json:
test: vitest runtest:watch: vitesttest:coverage: vitest run --coveragesrc/tests/setup.ts) and include it in Vitest config.src/components/__tests__/*.spec.tssrc/stores/**/__tests__/*.spec.tssrc/services/__tests__/*.spec.tssrc/tests/*TextractNotificationService.start/stop in tests that touch auth flow.useNotificationStore when testing useAuthStore.login.npm run test.npm run test:coverage.npm run type-check.npm run lint.Prioritize high-risk paths:
login, checkSession, logout)axios.isAxiosError branches)