need full path for mocking part of submodule

This commit is contained in:
einhornimmond 2025-08-26 08:03:11 +02:00
parent ce1cf85956
commit 071488f0e8

View File

@ -43,7 +43,7 @@ const logErrorLogger = getLogger(`${LOG4JS_BASE_CATEGORY_NAME}.server.LogError`)
jest.mock('@/password/EncryptorUtils')
// mock semaphore to allow use fake timers
jest.mock('database/util/TRANSACTIONS_LOCK')
jest.mock('database/src/util/TRANSACTIONS_LOCK')
TRANSACTIONS_LOCK.acquire = jest.fn().mockResolvedValue(jest.fn())
let mutate: ApolloServerTestClient['mutate']