@mojaloop/ml-testing-toolkit-client-lib 1.8.4 → 1.9.0

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/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
+ ## [1.9.0](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.8.4...v1.9.0) (2025-03-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * refactor ([#27](https://github.com/mojaloop/ml-testing-toolkit-client-lib/issues/27)) ([9298d0a](https://github.com/mojaloop/ml-testing-toolkit-client-lib/commit/9298d0a23aca9691ebbc21c35365d9fa9bcc93ea))
11
+
5
12
  ### [1.8.4](https://github.com/mojaloop/ml-testing-toolkit-client-lib/compare/v1.8.3...v1.8.4) (2025-03-24)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mojaloop/ml-testing-toolkit-client-lib",
3
3
  "description": "Testing Toolkit Client Library",
4
- "version": "1.8.4",
4
+ "version": "1.9.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Vijaya Kumar Guthi, ModusBox Inc. ",
7
7
  "contributors": [
@@ -37,9 +37,9 @@ module.exports = async function (name, { runtimeInformation, test_cases: testCas
37
37
  assertions: Object.fromEntries(testCases.map(
38
38
  testCase => testCase?.requests?.map(
39
39
  request => request?.request?.tests?.assertions
40
- .filter(assertion => assertion?.assertionId ?? assertion.id)
40
+ .filter(assertion => assertion?.id)
41
41
  .map(
42
- assertion => [`${testCase.testCaseId ?? testCase.name}.${request.request.requestId ?? request.request.id}.${assertion?.assertionId ?? assertion.id}`, assertion?.resultStatus?.status]
42
+ assertion => [`${testCase.id}.${request.request.id}.${assertion?.id}`, assertion?.resultStatus?.status]
43
43
  )
44
44
  ).filter(Boolean)
45
45
  ).filter(Boolean).flat(2))
@@ -218,7 +218,7 @@ const handleIncomingProgress = async (progress) => {
218
218
  passed = logger.outbound(progress.totalResult)
219
219
  const resultReport = await report.outbound(progress.totalResult)
220
220
  // SaveReport status
221
- if (progress.totalResult.saveReport) {
221
+ if (progress.totalResult?.saveReport) {
222
222
  if (progress.saveReportStatus?.isSaved) {
223
223
  const ttkReportUrl = `${config.saveReportBaseUrl || config.baseURL}/api/history/test-reports/${progress.totalResult.runtimeInformation.testReportId}?format=html`
224
224
  console.log(fStr.green(`Report saved on TTK backend server successfully and is available at ${ttkReportUrl}`))
@@ -45,7 +45,8 @@ describe('Release CD', () => {
45
45
  const result = {
46
46
  test_cases: [
47
47
  {
48
- name: 'test-case',
48
+ id: 'test-case',
49
+ name: 'Test Case',
49
50
  requests: [
50
51
  {
51
52
  request: {