fix: update vitest config (exclude .worktrees, revert package.json test scripts to vitest)
This commit is contained in:
+2
-2
@@ -12,8 +12,8 @@
|
|||||||
"db:studio": "drizzle-kit studio",
|
"db:studio": "drizzle-kit studio",
|
||||||
"db:push": "drizzle-kit push",
|
"db:push": "drizzle-kit push",
|
||||||
"db:seed": "bun run lib/db/seed.ts",
|
"db:seed": "bun run lib/db/seed.ts",
|
||||||
"test": "bun test --isolate",
|
"test": "vitest run",
|
||||||
"test:watch": "bun test --isolate --watch",
|
"test:watch": "vitest",
|
||||||
"test:ci": "vitest run"
|
"test:ci": "vitest run"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-7
@@ -6,13 +6,7 @@ export default defineConfig({
|
|||||||
environment: "node",
|
environment: "node",
|
||||||
globals: true,
|
globals: true,
|
||||||
setupFiles: [],
|
setupFiles: [],
|
||||||
// drizzle-orm ships ESM files that only contain sourceMappingURL references
|
exclude: ["**/node_modules/**", "**/.worktrees/**"],
|
||||||
// (e.g. operations.js has no actual re-exports), which breaks named-export
|
|
||||||
// resolution between test files. Inlining lets Vite process the CJS
|
|
||||||
// fallback and provide proper named exports.
|
|
||||||
deps: {
|
|
||||||
inline: ["drizzle-orm", "drizzle-orm/pg-core", "drizzle-orm/node-postgres"],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||
Reference in New Issue
Block a user