fix: clear persona links and use esm vitest config

This commit is contained in:
Esdras Renan 2025-10-19 15:00:25 -03:00
parent 149d46e7d3
commit 30dd503082
3 changed files with 120 additions and 2 deletions

22
vitest.config.mts Normal file
View file

@ -0,0 +1,22 @@
import path from "path"
import { fileURLToPath } from "url"
import { defineConfig } from "vitest/config"
const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@/convex": path.resolve(__dirname, "./convex"),
},
},
test: {
pool: "vmThreads",
environment: "node",
globals: true,
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
setupFiles: ["./vitest.setup.ts"],
testTimeout: 15000,
},
})