Server/project/vitest.config.ts
Refringe 047884e9c7
Additional InsuranceController Tests
- Adds tests for the remaining methods in the `InsuranceController`.
- Adds a `countAllInsuranceItems()` method to the `InsuranceController`.
- Adds the Vitest UI and coverage packages.
- Updates the `profileInsuranceFactory` to use second-epoch dates instead of millisecond-epoch dates.
- Updates the `InsuranceController.fetchHideoutItemParent()` method to log a warning when an item with a slotId of 'hideout' cannot be found.

TODO:
- The Vitest coverage options are not working.
2023-11-03 17:39:33 -04:00

29 lines
753 B
TypeScript

/* 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: "./tests",
cache: false,
environment: "./CustomEnvironment.ts",
globals: true,
coverage: {
enabled: true,
provider: "v8",
reporter: ["text", "html"],
reportsDirectory: "./__coverage__"
},
typecheck: {
enabled: true
},
alias: {
"@spt-aki": path.resolve(__dirname, "src"),
"@tests": path.resolve(__dirname, "tests")
}
}
});