From 6624e1b4efcab4d9637df1a40f8720ff028330ab Mon Sep 17 00:00:00 2001 From: nhenin Date: Tue, 6 Feb 2024 14:32:12 +0100 Subject: [PATCH] fixed test build --- package.json | 2 +- .../runtime/client/rest/test/endpoints/contracts.spec.e2e.ts | 2 +- packages/runtime/lifecycle/test/generic/contracts.e2e.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ef35826a..a9ed2b08 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "scripts": { "build": "tsc --version && tsc --build && shx mkdir -p dist && rollup --config rollup/config.mjs", "clean": "npm run clean --workspaces && shx rm -rf dist", - "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config ./jest.unit.config.js --verbose", + "test": "tsc --build tsconfig.test.json && NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config ./jest.unit.config.js --verbose", "test:e2e": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --runInBand --config ./jest.e2e.config.js --verbose", "docs": "typedoc . --treatWarningsAsErrors --options ./typedoc.json", "serve": "ws --port 1337 --rewrite '/importmap -> https://cdn.jsdelivr.net/gh/input-output-hk/marlowe-ts-sdk@0.3.0-beta/jsdelivr-npm-importmap.js'", diff --git a/packages/runtime/client/rest/test/endpoints/contracts.spec.e2e.ts b/packages/runtime/client/rest/test/endpoints/contracts.spec.e2e.ts index 88123687..babfe740 100644 --- a/packages/runtime/client/rest/test/endpoints/contracts.spec.e2e.ts +++ b/packages/runtime/client/rest/test/endpoints/contracts.spec.e2e.ts @@ -58,7 +58,7 @@ describe("contracts endpoints", () => { await Promise.all( firstPage.contracts.map((contract) => - restClient.getContractById(contract.contractId) + restClient.getContractById({ contractId: contract.contractId }) ) ); }, diff --git a/packages/runtime/lifecycle/test/generic/contracts.e2e.spec.ts b/packages/runtime/lifecycle/test/generic/contracts.e2e.spec.ts index a0af6129..6f72c0ed 100644 --- a/packages/runtime/lifecycle/test/generic/contracts.e2e.spec.ts +++ b/packages/runtime/lifecycle/test/generic/contracts.e2e.spec.ts @@ -63,7 +63,7 @@ describe("Runtime Contract Lifecycle ", () => { await bank.waitConfirmation(txIdContractCreated); logInfo( `contractID status : ${contractId} -> ${ - (await runtime.restClient.getContractById(contractId)).status + (await runtime.restClient.getContractById({ contractId })).status }` ); await bank.waitRuntimeSyncingTillCurrentWalletTip(runtime.restClient);