Skip to content

Commit e49b4a1

Browse files
committed
fix: add jest.setTimeout(30000) for reliable global timeout
1 parent 33a5034 commit e49b4a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

__tests__/setup.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { testSchema } from '../src/data-source';
55
import { remoteConfig } from '../src/remoteConfig';
66
import { loadAuthKeys } from '../src/auth';
77

8+
// Set global timeout for all tests and hooks (more reliable than jest.config.js testTimeout)
9+
jest.setTimeout(30000);
10+
811
expect.extend(matchers);
912

1013
global.structuredClone = (v) => JSON.parse(JSON.stringify(v));
@@ -126,4 +129,4 @@ beforeEach(async () => {
126129
loadAuthKeys();
127130

128131
await cleanDatabase();
129-
}, 60000);
132+
}, 90000); // 90s - cleanDatabase iterates through many entities

0 commit comments

Comments
 (0)