super-todo-app-server/vitest.config.ts
Nicolas HOARAU 2cdf12d773
Some checks failed
ci / ci (22, ubuntu-latest) (push) Failing after 16m3s
first commit
2026-01-29 23:58:45 +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",
},
},
});