Server/project/vitest.config.ts
Alex d13e86ba46 Rebranding to SPT (!345)
Rebranded src code and scripts to SPT

Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/345
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
2024-05-21 17:59:04 +00:00

27 lines
887 B
TypeScript

import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
name: "spt-server",
reporters: ["default"],
root: "./",
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
cache: { dir: "./tests/__cache__" },
environment: "./tests/CustomEnvironment.ts",
globals: true,
coverage: {
provider: "istanbul",
reporter: ["text", "html"],
reportsDirectory: "./tests/__coverage__",
reportOnFailure: true,
all: true,
include: ["src"],
exclude: ["src/models/**", "tests/**"],
},
pool: "threads",
poolOptions: { threads: { singleThread: true, isolate: false } },
alias: { "@spt": path.resolve(__dirname, "src"), "@tests": path.resolve(__dirname, "tests") },
},
});