From 2afee33fb03714e2735d0c72db4461b8b310f85e Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Mon, 25 May 2026 19:24:41 +0800 Subject: [PATCH] fix: update vitest config (exclude .worktrees, revert package.json test scripts to vitest) --- package.json | 4 ++-- vitest.config.ts | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 5327000..cc92df4 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "db:studio": "drizzle-kit studio", "db:push": "drizzle-kit push", "db:seed": "bun run lib/db/seed.ts", - "test": "bun test --isolate", - "test:watch": "bun test --isolate --watch", + "test": "vitest run", + "test:watch": "vitest", "test:ci": "vitest run" }, "dependencies": { diff --git a/vitest.config.ts b/vitest.config.ts index 7eabddb..af08d8d 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,13 +6,7 @@ export default defineConfig({ environment: "node", globals: true, setupFiles: [], - // drizzle-orm ships ESM files that only contain sourceMappingURL references - // (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"], - }, + exclude: ["**/node_modules/**", "**/.worktrees/**"], }, resolve: { alias: {