wip: e2e tests improvements

This commit is contained in:
Ralph Khreish
2025-07-11 19:11:49 +03:00
parent 39369ecd3c
commit e580e5d7c0
14 changed files with 930 additions and 2423 deletions

View File

@@ -3,8 +3,9 @@
* Runs before each test file
*/
const { TestHelpers } = require('../utils/test-helpers.cjs');
const { TestLogger } = require('../utils/logger.cjs');
import { jest, expect, afterAll } from '@jest/globals';
import { TestHelpers } from '../utils/test-helpers.js';
import { TestLogger } from '../utils/logger.js';
// Increase timeout for all E2E tests (can be overridden per test)
jest.setTimeout(180000);
@@ -79,4 +80,4 @@ global.createTestContext = (testName) => {
afterAll(async () => {
// Give time for any async operations to complete
await new Promise((resolve) => setTimeout(resolve, 100));
});
});