Server/project/vitest.config.ts

30 lines
863 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: "./",
include: ["tests/Setup.test.ts"],
cache: false,
environment: "./tests/CustomEnvironment.ts",
globals: true,
coverage: {
provider: "istanbul",
reporter: ["text", "html"],
2023-11-04 19:37:16 +01:00
reportsDirectory: "./tests/__coverage__",
reportOnFailure: true,
2023-11-04 19:37:16 +01:00
all: true,
include: ["src"],
exclude: ["src/models/**", "tests/**"]
},
alias: {
"@spt-aki": path.resolve(__dirname, "src"),
"@tests": path.resolve(__dirname, "tests")
}
}
});