Fix CI: add express/pg devDeps for atlas test, allow lint warnings, drop forceExit

This commit is contained in:
Jordan Ramos
2026-05-08 13:25:58 -06:00
parent b870f47e67
commit f76996a161
3 changed files with 707 additions and 199 deletions

View File

@@ -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', () => ({