vitest.config.ts•740 B
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
globals: true,
environment: "node",
setupFiles: ["./vitest.setup.ts"],
include: [
"**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
"**/*.test.vitest.ts",
"**/*.spec.vitest.ts",
],
coverage: {
provider: "v8",
reporter: ["text", "html", "lcov"],
exclude: ["node_modules/", "dist/", "tests/"],
},
alias: {
"@app": path.resolve(__dirname, "./src"),
"@tests": path.resolve(__dirname, "./tests"),
},
},
resolve: {
alias: {
"@app": path.resolve(__dirname, "./src"),
"@tests": path.resolve(__dirname, "./tests"),
},
},
});