We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6938a0 commit f4a7e43Copy full SHA for f4a7e43
1 file changed
packages/cloudflare/vitest.config.ts
@@ -0,0 +1,20 @@
1
+import { defineConfig } from "vitest/config";
2
+
3
+export default defineConfig({
4
+ test: {
5
+ /**
6
+ * Explicitly set root to current directory for this package.
7
+ *
8
+ * In monorepo setups, this vitest.config.ts takes priority over any parent
9
+ * vite.config.js files, preventing Vitest from using unrelated configurations
10
+ * from parent directories that may reference dependencies not installed in
11
+ * this package.
12
13
+ * This is the recommended approach for monorepo packages to ensure isolated
14
+ * test configuration.
15
16
+ * See: https://vitest.dev/config/
17
+ */
18
+ root: ".",
19
+ },
20
+});
0 commit comments