modify jest.mock for TRANSACTIONS_LOCK

This commit is contained in:
clauspeterhuebner 2025-08-25 23:54:48 +02:00
parent a0cde876cd
commit bfd2e61d65
2 changed files with 2 additions and 2 deletions

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('@/util/TRANSACTIONS_LOCK')
TRANSACTIONS_LOCK.acquire = jest.fn().mockResolvedValue(jest.fn())
let mutate: ApolloServerTestClient['mutate']

View File

@ -1,2 +1,2 @@
export * from './TRANSACTIONS_LOCK'
export * from './TRANSACTION_LINK_LOCK'
export * from './TRANSACTION_LINK_LOCK'