Skip to content

Commit 92d99ee

Browse files
committed
fix(web): exclude lib/__tests__ from Jest runner
Tests in lib/__tests__ use bun:test mock.module() which is not supported by the Jest stub. These tests should run with bun test only. This fixes CI failure where ban-conditions.test.ts failed due to missing fetch polyfill when Stripe SDK was initialized.
1 parent 3b790af commit 92d99ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/jest.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const config = {
1919
},
2020
testPathIgnorePatterns: [
2121
'<rootDir>/src/__tests__/e2e',
22+
'<rootDir>/src/lib/__tests__', // Uses bun:test mock.module() - run with bun test
2223
'<rootDir>/src/app/api/v1/.*/__tests__',
2324
'<rootDir>/src/app/api/agents/publish/__tests__',
2425
'<rootDir>/src/app/api/agents/\\[publisherId\\]/.*/__tests__',

0 commit comments

Comments
 (0)