super-todo-app-server/apps/web/vitest.config.ts
= e2114f5b7f
Some checks failed
ci / ci (push) Failing after 53s
chore: migration vers monorepo
2026-02-23 21:10:28 +04:00

35 lines
809 B
TypeScript

import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
import { defineVitestProject } from "@nuxt/test-utils/config";
export default defineConfig({
test: {
projects: [
{
test: {
name: "unit",
include: ["test/unit/*.{test,spec}.ts"],
environment: "node",
},
},
await defineVitestProject({
test: {
name: "nuxt",
include: ["test/nuxt/*.{test,spec}.ts"],
environment: "nuxt",
environmentOptions: {
nuxt: {
rootDir: fileURLToPath(new URL(".", import.meta.url)),
domEnvironment: "happy-dom",
},
},
},
}),
],
coverage: {
enabled: true,
provider: "v8",
},
},
});