Skip to content

Commit 1a18b90

Browse files
committed
fix(test): scope root vitest config to src/__tests__ only
The Cloudflare Workers pool uses a virtual filesystem, so SDK tests using readFileSync on the real filesystem would fail when picked up by the root config. Scoping to src/__tests__/ keeps each package running its own tests in the correct environment.
1 parent 25d055f commit 1a18b90

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vitest.config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ export default defineConfig({
1010
},
1111
}),
1212
],
13+
test: {
14+
include: ["src/__tests__/**/*.test.ts"],
15+
},
1316
});

0 commit comments

Comments
 (0)