18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { fileURLToPath } from "url";
|
|
import { resolve } from "path";
|
|
|
|
const __dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
include: ["src/**/*.test.ts"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
}); |