test(tooling): add vitest baseline policy and order tests

This commit is contained in:
zetaloop
2026-02-22 14:51:21 +08:00
parent 6517018a9c
commit f8c4c87c61
5 changed files with 976 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
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, "."),
},
},
})