account-lookup-service 17.10.1 → 17.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.ncurc.yaml CHANGED
@@ -1,5 +1,7 @@
1
1
  ## Add a TODO comment indicating the reason for each rejected dependency upgrade added to this list, and what should be done to resolve it (i.e. handle it through a story, etc).
2
2
  reject: [
3
3
  # TODO: v6+ (ref: https://github.com/sindresorhus/get-port/releases/tag/v6.0.0) is an ESM library and thus not compatible with CommonJS. Future story needed to resolve.
4
- "get-port"
4
+ "get-port",
5
+ ## jest 30 is released but libraries that work with jest have not been updated to support it yet.
6
+ "jest"
5
7
  ]
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [17.10.2](https://github.com/mojaloop/account-lookup-service/compare/v17.10.1...v17.10.2) (2025-06-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix broken int test reporting ([#554](https://github.com/mojaloop/account-lookup-service/issues/554)) ([d69cb64](https://github.com/mojaloop/account-lookup-service/commit/d69cb641bec52d0e122361cfb2b36b0b066f6f86))
11
+
5
12
  ### [17.10.1](https://github.com/mojaloop/account-lookup-service/compare/v17.10.0...v17.10.1) (2025-05-30)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "account-lookup-service",
3
3
  "description": "Account Lookup Service is used to validate Party and Participant lookups.",
4
- "version": "17.10.1",
4
+ "version": "17.10.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
7
7
  "contributors": [
@@ -56,7 +56,7 @@
56
56
  "test:xunit": "npm run test:junit",
57
57
  "test:functional": "bash ./scripts/test-functional.sh",
58
58
  "test:int": "npm run migrate && npm run onboarding && jest --config=./jest-int.config.js --runInBand",
59
- "test:integration": "npm run dc:up && npm run wait-4-docker && npm run test:int | tee ./test/results/test-int.log",
59
+ "test:integration": "./test/scripts/test-integration.sh",
60
60
  "test:integration-runner": "TEST_MODE=rm ./test/integration-runner.sh",
61
61
  "onboarding": "node test/integration/prepareTestParticipants.js",
62
62
  "cover": "npx nyc --all report --reporter=lcov npm run test",
@@ -94,10 +94,10 @@
94
94
  "@mojaloop/central-services-health": "15.1.0",
95
95
  "@mojaloop/central-services-logger": "11.9.0",
96
96
  "@mojaloop/central-services-metrics": "12.6.0",
97
- "@mojaloop/central-services-shared": "18.26.2",
98
- "@mojaloop/central-services-stream": "11.6.0",
97
+ "@mojaloop/central-services-shared": "18.28.2",
98
+ "@mojaloop/central-services-stream": "11.7.0",
99
99
  "@mojaloop/database-lib": "11.2.0",
100
- "@mojaloop/event-sdk": "14.5.1",
100
+ "@mojaloop/event-sdk": "14.6.1",
101
101
  "@mojaloop/inter-scheme-proxy-cache-lib": "2.6.0",
102
102
  "@mojaloop/ml-schema-transformer-lib": "2.7.1",
103
103
  "@mojaloop/sdk-standard-components": "19.15.2",
@@ -160,9 +160,9 @@
160
160
  "validator": "13.7.0"
161
161
  },
162
162
  "devDependencies": {
163
- "@types/jest": "29.5.14",
163
+ "@types/jest": "30.0.0",
164
164
  "audit-ci": "^7.1.0",
165
- "axios": "1.9.0",
165
+ "axios": "1.10.0",
166
166
  "axios-retry": "^4.5.0",
167
167
  "docdash": "2.0.2",
168
168
  "dotenv": "^16.5.0",
@@ -177,7 +177,7 @@
177
177
  "pre-commit": "1.2.2",
178
178
  "proxyquire": "2.1.3",
179
179
  "replace": "^1.2.2",
180
- "sinon": "20.0.0",
180
+ "sinon": "21.0.0",
181
181
  "standard": "17.1.2",
182
182
  "standard-version": "^9.5.0",
183
183
  "swagmock": "1.0.0"
@@ -26,7 +26,7 @@
26
26
  ******/
27
27
 
28
28
  const { randomUUID } = require('node:crypto')
29
- const { Enum, Util } = jest.requireActual('@mojaloop/central-services-shared')
29
+ const { Enum, Util } = require('@mojaloop/central-services-shared')
30
30
  const isoFixtures = require('./iso')
31
31
 
32
32
  const { Headers } = Enum.Http
@@ -1,11 +1,11 @@
1
1
  require('./setup')
2
2
 
3
- const Logger = require('@mojaloop/central-services-logger')
3
+ const { logger } = require('../../src/lib')
4
4
  const { onboarding } = require('../util')
5
5
  const { PROXY_NAME, PAYER_DFSP } = require('../integration/constants')
6
6
 
7
7
  const pause = async (ms = 1000) => new Promise(resolve => {
8
- Logger.info(`pause for ${ms / 1000} sec....`)
8
+ logger.info(`pause for ${ms / 1000} sec....`)
9
9
  setTimeout(resolve, ms)
10
10
  })
11
11
 
@@ -21,10 +21,10 @@ const prepareTestParticipants = async () => {
21
21
  })
22
22
 
23
23
  await onboarding.createOracle()
24
- Logger.info('prepareTestParticipants is finished')
24
+ logger.info('prepareTestParticipants is finished')
25
25
  }
26
26
 
27
27
  prepareTestParticipants().catch(err => {
28
- Logger.error(err)
28
+ logger.error('error in prepareTestParticipants: ', err)
29
29
  throw err
30
30
  })
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+ set -euxo pipefail
3
+
4
+ docker load -i /tmp/docker-image.tar
5
+
6
+ npm run dc:up
7
+ npm run wait-4-docker
8
+
9
+ EXIT_CODE=0
10
+ npm run test:int || EXIT_CODE="$?"
11
+ echo "==> integration tests exited with code: $EXIT_CODE"
12
+
13
+ npm run dc:down
14
+ exit $EXIT_CODE
@@ -51,8 +51,9 @@ jest.mock('@mojaloop/central-services-shared', () => ({
51
51
  Request: { sendRequest: mockSendRequest },
52
52
  Http: { SwitchDefaultHeaders: jest.fn() },
53
53
  HeaderValidation: { getHubNameRegex: jest.fn().mockReturnValue(new RegExp(mockHubName)) },
54
+ Hapi: jest.requireActual('@mojaloop/central-services-shared').Util.Hapi,
54
55
  rethrow: jest.requireActual('@mojaloop/central-services-shared').Util.rethrow,
55
- Hapi: jest.requireActual('@mojaloop/central-services-shared').Util.Hapi
56
+ StreamingProtocol: jest.requireActual('@mojaloop/central-services-shared').Util.StreamingProtocol
56
57
  },
57
58
  Enum: mockEnums
58
59
  }))