fix: clear persona links and use esm vitest config
This commit is contained in:
parent
149d46e7d3
commit
30dd503082
3 changed files with 120 additions and 2 deletions
22
vitest.config.mts
Normal file
22
vitest.config.mts
Normal 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,
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue