Fix CI: add express/pg devDeps for atlas test, allow lint warnings, drop forceExit
This commit is contained in:
@@ -16,7 +16,8 @@ if (typeof globalThis.TextDecoder === 'undefined') {
|
||||
// without pulling in Express, SQLite, etc.
|
||||
// ---------------------------------------------------------------------------
|
||||
jest.mock('express', () => ({ Router: jest.fn(() => ({ get: jest.fn(), post: jest.fn(), put: jest.fn(), patch: jest.fn() })) }));
|
||||
jest.mock('../../../../../backend/db', () => ({}), { virtual: true });
|
||||
jest.mock('pg', () => ({ Pool: jest.fn(() => ({ query: jest.fn() })) }));
|
||||
jest.mock('../../../../../backend/db', () => ({ query: jest.fn(() => Promise.resolve({ rows: [] })) }), { virtual: true });
|
||||
jest.mock('../../../../../backend/middleware/auth', () => ({ requireAuth: jest.fn(() => (req, res, next) => next()), requireGroup: jest.fn(() => (req, res, next) => next()) }), { virtual: true });
|
||||
jest.mock('../../../../../backend/helpers/auditLog', () => jest.fn(), { virtual: true });
|
||||
jest.mock('../../../../../backend/helpers/atlasApi', () => ({
|
||||
|
||||
Reference in New Issue
Block a user