047884e9c7
- 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.
29 lines
753 B
TypeScript
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")
|
|
}
|
|
}
|
|
});
|