Skip to content

Commit 8d33c52

Browse files
committed
fix(web): exclude Bun-only tests from Jest and make them ES modules
1 parent 6e24235 commit 8d33c52

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

web/jest.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const config = {
1818
},
1919
testPathIgnorePatterns: [
2020
'<rootDir>/src/__tests__/e2e',
21+
'<rootDir>/src/__tests__/playwright-runner.test.ts',
22+
'<rootDir>/src/lib/__tests__/ban-conditions.test.ts',
2123
'<rootDir>/src/app/api/v1/.*/__tests__',
2224
'<rootDir>/src/app/api/agents/publish/__tests__',
2325
],

web/src/__tests__/playwright-runner.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export {}
2+
13
import { describe, expect, it, setDefaultTimeout } from 'bun:test'
24

35
setDefaultTimeout(10 * 60 * 1000)

web/src/lib/__tests__/ban-conditions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export {}
2+
13
import { afterAll, beforeEach, describe, expect, it, mock } from 'bun:test'
24
import {
35
clearMockedModules,

0 commit comments

Comments
 (0)