Files
wehub-resource-sync 05fcd08057
Deploy GitBook to 9router.github.io / build-deploy (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:21:01 +08:00

30 lines
1.1 KiB
JavaScript

import { defineConfig } from "vitest/config";
import { resolve } from "path";
import { fileURLToPath } from "url";
const __dirname = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
test: {
environment: "node",
globals: true,
include: ["**/*.test.js"],
// Don't scan into git worktrees nested under .claude/ — they carry their
// own copies of the test files but lack an installed node_modules (open-sse,
// etc.), which makes provider imports fail during collection.
exclude: ["**/node_modules/**", "**/.claude/**", "**/dist/**"],
// Allow many it.concurrent cases (real provider smoke runs ~50 providers in parallel)
maxConcurrency: 60,
// Suppress noisy console output from handlers under test
silent: false,
},
resolve: {
// Use array form so subpath aliases (e.g. "@/lib/db/index.js") resolve correctly.
alias: [
{ find: /^open-sse\//, replacement: resolve(__dirname, "../open-sse") + "/" },
{ find: "open-sse", replacement: resolve(__dirname, "../open-sse") },
{ find: /^@\//, replacement: resolve(__dirname, "../src") + "/" },
],
},
});