From 738fe6f9ec4721184a767c130d17a925475a2975 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Tue, 26 Aug 2025 00:06:01 +0200 Subject: [PATCH] next try jest.mock TRANSACTIONS_LOCK --- backend/src/graphql/resolver/TransactionLinkResolver.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.test.ts b/backend/src/graphql/resolver/TransactionLinkResolver.test.ts index 03ac5524b..bac8e6cea 100644 --- a/backend/src/graphql/resolver/TransactionLinkResolver.test.ts +++ b/backend/src/graphql/resolver/TransactionLinkResolver.test.ts @@ -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('@/util/TRANSACTIONS_LOCK') +jest.mock('database') TRANSACTIONS_LOCK.acquire = jest.fn().mockResolvedValue(jest.fn()) let mutate: ApolloServerTestClient['mutate']