mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
modify jest.mock for TRANSACTIONS_LOCK
This commit is contained in:
parent
a0cde876cd
commit
bfd2e61d65
@ -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']
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
export * from './TRANSACTIONS_LOCK'
|
||||
export * from './TRANSACTION_LINK_LOCK'
|
||||
export * from './TRANSACTION_LINK_LOCK'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user