From bfd2e61d65f6b9c8ee45b24b2793117a057dc818 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Mon, 25 Aug 2025 23:54:48 +0200
Subject: [PATCH] modify jest.mock for TRANSACTIONS_LOCK
---
backend/src/graphql/resolver/TransactionLinkResolver.test.ts | 2 +-
database/src/util/index.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.test.ts b/backend/src/graphql/resolver/TransactionLinkResolver.test.ts
index 6997c0e93..03ac5524b 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('database/util/TRANSACTIONS_LOCK')
+jest.mock('@/util/TRANSACTIONS_LOCK')
TRANSACTIONS_LOCK.acquire = jest.fn().mockResolvedValue(jest.fn())
let mutate: ApolloServerTestClient['mutate']
diff --git a/database/src/util/index.ts b/database/src/util/index.ts
index b16b20d19..d2fde2126 100644
--- a/database/src/util/index.ts
+++ b/database/src/util/index.ts
@@ -1,2 +1,2 @@
export * from './TRANSACTIONS_LOCK'
-export * from './TRANSACTION_LINK_LOCK'
\ No newline at end of file
+export * from './TRANSACTION_LINK_LOCK'