Updated tests.

This commit is contained in:
Tom Butcher 2026-03-07 20:36:18 +00:00
parent 420ab75467
commit 1b2d505a30

View File

@ -1,8 +1,9 @@
import { jest } from '@jest/globals';
// Mock src/database/utils.js (where generateId lives)
// Mock src/database/utils.js (where generateId and convertObjectIdStringsInFilter live)
jest.unstable_mockModule('../utils.js', () => ({
generateId: jest.fn(() => () => 'test-id'),
convertObjectIdStringsInFilter: jest.fn((filter) => filter),
}));
// Mock src/utils.js (where most database.js helpers live)