chore: add vitest project config and yarn constraints

This commit is contained in:
Christian Andolf
2025-06-30 11:29:09 +02:00
parent 4e1cb01b84
commit 733281240f
14 changed files with 45 additions and 590 deletions

View File

@@ -0,0 +1,17 @@
import path from "path"
import { fileURLToPath } from "url"
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
export default {
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./vitest-setup.ts"],
},
resolve: {
alias: {
"@": path.resolve(__dirname, "."),
},
},
}