Server/project/vitest.config.ts

32 lines
861 B
TypeScript
Raw Normal View History

/* eslint-disable @typescript-eslint/naming-convention */
import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
name: "spt-server",
api: 51204,
reporters: ["default"],
root: "./",
cache: false,
environment: "./tests/CustomEnvironment.ts",
globals: true,
coverage: {
provider: "v8",
reporter: ["text", "html"],
reportsDirectory: "./__coverage__",
reportOnFailure: true,
all: true,
include: ["src"],
exclude: ["src/models/**", "tests/**", "src/__coverage__"]
},
2023-10-30 03:19:49 +01:00
typecheck: {
enabled: true
},
alias: {
"@spt-aki": path.resolve(__dirname, "src"),
"@tests": path.resolve(__dirname, "tests")
}
}
});