22 lines
471 B
TypeScript
22 lines
471 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
include: ["src/**/*.test.ts"],
|
|
exclude: ["node_modules/**", ".next/**"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html"],
|
|
include: ["src/lib/**/*.ts"],
|
|
exclude: ["src/lib/**/*.test.ts"],
|
|
},
|
|
},
|
|
});
|