Fix CI: add express/pg devDeps for atlas test, allow lint warnings, drop forceExit
This commit is contained in:
895
frontend/package-lock.json
generated
895
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -51,6 +51,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"fast-check": "^4.7.0"
|
"express": "^5.2.1",
|
||||||
|
"fast-check": "^4.7.0",
|
||||||
|
"pg": "^8.20.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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', () => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user