From 071488f0e8824c2c9ff6743a90a7dd562125fc87 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 26 Aug 2025 08:03:11 +0200 Subject: [PATCH 1/3] need full path for mocking part of submodule --- 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 6997c0e93..d7c2fc713 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('database/src/util/TRANSACTIONS_LOCK') TRANSACTIONS_LOCK.acquire = jest.fn().mockResolvedValue(jest.fn()) let mutate: ApolloServerTestClient['mutate'] From 16fcaad7d4b941e6cfc97163d8f6582bf004b390 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 26 Aug 2025 08:07:08 +0200 Subject: [PATCH 2/3] add type specification for sodium in core --- bun.lock | 1 + core/package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/bun.lock b/bun.lock index 9b49f0b8d..564c3b0fa 100644 --- a/bun.lock +++ b/bun.lock @@ -194,6 +194,7 @@ "devDependencies": { "@biomejs/biome": "2.0.0", "@types/node": "^17.0.21", + "@types/sodium-native": "^2.3.5", "config-schema": "*", "decimal.js-light": "^2.5.1", "graphql-request": "5.0.0", diff --git a/core/package.json b/core/package.json index 092b4ff00..e1d805c66 100644 --- a/core/package.json +++ b/core/package.json @@ -37,6 +37,7 @@ "devDependencies": { "@biomejs/biome": "2.0.0", "@types/node": "^17.0.21", + "@types/sodium-native": "^2.3.5", "config-schema": "*", "decimal.js-light": "^2.5.1", "graphql-request": "5.0.0", diff --git a/yarn.lock b/yarn.lock index 235b04ce6..2b815e0ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2667,6 +2667,11 @@ resolved "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz" integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== +"@types/node@^14.11.2": + version "14.18.63" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b" + integrity sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ== + "@types/node@^17.0.21", "@types/node@^17.0.45": version "17.0.45" resolved "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz" From 75477a493ed474ad54a9cebba5d3478a3d64636d Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 26 Aug 2025 08:20:01 +0200 Subject: [PATCH 3/3] add @types/i18n in core --- bun.lock | 1 + core/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/bun.lock b/bun.lock index 564c3b0fa..5c1e61306 100644 --- a/bun.lock +++ b/bun.lock @@ -193,6 +193,7 @@ }, "devDependencies": { "@biomejs/biome": "2.0.0", + "@types/i18n": "^0.13.4", "@types/node": "^17.0.21", "@types/sodium-native": "^2.3.5", "config-schema": "*", diff --git a/core/package.json b/core/package.json index e1d805c66..9e745f948 100644 --- a/core/package.json +++ b/core/package.json @@ -36,6 +36,7 @@ }, "devDependencies": { "@biomejs/biome": "2.0.0", + "@types/i18n": "^0.13.4", "@types/node": "^17.0.21", "@types/sodium-native": "^2.3.5", "config-schema": "*",