nxtgauge-frontend-solid/vitest.config.ts
Ashwin Kumar f990b9a9e0 feat: comprehensive testing infrastructure (without workflow pending token scope)
- Add vitest, Playwright, ESLint, Prettier configs
- Add unit tests and e2e accessibility/visual tests
- Add MSW mocks and test setup
- Update scripts and .gitignore
- Install required dev dependencies

Note: GitHub Actions workflow will be added after token scope is granted.
2026-04-08 02:43:29 +02:00

18 lines
518 B
TypeScript

import { defineConfig } from "vitest/config";
import solid from "vitest-plugin-solid";
export default defineConfig({
plugins: [solid()],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./src/test/setup.ts"],
include: ["src/**/*.{test,spec}.{js,mjs,ts,tsx}"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html", "lcov"],
reportsDirectory: "./test-results/vitest-coverage",
exclude: ["node_modules", "dist", ".output", "**/*.d.ts"],
},
},
});