18 lines
371 B
TypeScript
18 lines
371 B
TypeScript
import { dirname, resolve } from "node:path"
|
|
import { fileURLToPath } from "node:url"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
const rootDir = dirname(fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "node",
|
|
include: ["tests/**/*.test.ts"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(rootDir, "."),
|
|
},
|
|
},
|
|
})
|