mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 05:50:44 -05:00
![Chomp](/assets/img/avatar_default.png)
# Conflicts: # project/Server.code-workspace # project/assets/configs/core.json # project/package.json # project/src/generators/BotGenerator.ts # project/src/services/BotNameService.ts # project/src/services/PaymentService.ts
30 lines
954 B
TypeScript
30 lines
954 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
cacheDir: "./tests/__cache__",
|
|
test: {
|
|
name: "spt-server",
|
|
reporters: ["default"],
|
|
root: "./",
|
|
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
|
|
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": fileURLToPath(new URL("src", import.meta.url)),
|
|
"@tests": fileURLToPath(new URL("tests", import.meta.url)),
|
|
},
|
|
},
|
|
});
|