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

File diff suppressed because it is too large Load Diff

View File

@@ -51,6 +51,8 @@
} }
}, },
"devDependencies": { "devDependencies": {
"fast-check": "^4.7.0" "express": "^5.2.1",
"fast-check": "^4.7.0",
"pg": "^8.20.0"
} }
} }

View File

@@ -16,7 +16,8 @@ if (typeof globalThis.TextDecoder === 'undefined') {
// without pulling in Express, SQLite, etc. // 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('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/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/auditLog', () => jest.fn(), { virtual: true });
jest.mock('../../../../../backend/helpers/atlasApi', () => ({ jest.mock('../../../../../backend/helpers/atlasApi', () => ({