ad5e0815b6
Basically the same, except it plays nicer with Typescript and ESM. I have it mostly working, except for a type error: `TypeError: Int32Array is not a constructor` But I'm too damn tired it debug it at the moment.
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
/* eslint-disable @typescript-eslint/naming-convention */
|
|
import path from "path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
name: "spt-server",
|
|
root: "./tests",
|
|
environment: "./CustomEnvironment.ts",
|
|
globals: true,
|
|
alias: {
|
|
"@spt-aki": path.resolve(__dirname, "src"),
|
|
"@tests": path.resolve(__dirname, "tests")
|
|
}
|
|
}
|
|
});
|