Updated tests.
This commit is contained in:
parent
420ab75467
commit
1b2d505a30
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user