diff --git a/package-lock.json b/package-lock.json index 15ee79658..ec9c7cb3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33376,7 +33376,7 @@ "execa": "^6.1.0", "fix-esm": "^1.0.1", "jest": "^29.3.1", - "jest-allure": "0.1.3", + "jest-allure": "^0.1.3", "spawn-please": "^1.0.0", "ts-jest": "^29.0.3", "ts-node": "^10.8.0", diff --git a/tests/e2e/taqueria-plugin-taquito-flextesa.spec.ts b/tests/e2e/taqueria-plugin-taquito-flextesa.spec.ts index 8ed500c91..e8be9cc48 100644 --- a/tests/e2e/taqueria-plugin-taquito-flextesa.spec.ts +++ b/tests/e2e/taqueria-plugin-taquito-flextesa.spec.ts @@ -193,14 +193,14 @@ describe('E2E Testing for taqueria taquito plugin', () => { await fsPromises.readFile(`${taqueriaProjectPath}/.taq/config.json`, { encoding: 'utf-8' }), ); const localURL = configContents.sandbox.localTF.rpcUrl; - const beforeAmount = checkContractBalanceOnNetwork(contractHash, localURL); + const beforeAmount = await checkContractBalanceOnNetwork(contractHash, localURL); // 6. Call taq call command to transfer 0 tez from account to the contract await exec(`taq call ${contractHash} --param hello-tacos.parameter.decrement_by_1.tz`, { cwd: `./${taqueriaProjectPath}`, }); - const afterAmount = checkContractBalanceOnNetwork(contractHash, localURL); + const afterAmount = await checkContractBalanceOnNetwork(contractHash, localURL); // 8. Verify that amount was not charged expect(beforeAmount).toStrictEqual(afterAmount); diff --git a/tests/package.json b/tests/package.json index 676d6dcbe..3101d1e9e 100644 --- a/tests/package.json +++ b/tests/package.json @@ -7,12 +7,12 @@ "scripts": { "test:unit": "npm run test:unit:deno && npm run test:unit:jest", "test:unit:deno": "TEST=true deno test unit/ --allow-all --unstable --import-map ../import_map.json", - "test:unit:jest": "TEST=true jest --config jest.config.unit.ts --no-cache --detectOpenHandles --detectLeaks --ci", + "test:unit:jest": "TEST=true jest --config jest.config.unit.ts --no-cache --detectOpenHandles --detectLeaks", "test:unit:deno:debug": "TEST=true deno test unit/ --allow-all --unstable --inspect-brk", "test:unit:deno:with-coverage": "TEST=true deno test unit/ --allow-all --unstable --coverage=coverage_report && deno coverage coverage_report && deno coverage coverage_report --lcov > coverage_profile.lcov", "test:unit:selected": "TEST=true deno test unit/taqueria-utils/taqueria-utils.test.ts --allow-all --unstable --coverage=coverage_report && deno coverage coverage_report", - "test:integration": "TEST=true jest --config jest.config.integration.ts --no-cache", - "test:e2e": "TEST=true jest --config jest.config.e2e.ts" + "test:integration": "TEST=true jest --config jest.config.integration.ts --no-cache --detectOpenHandles --detectLeaks", + "test:e2e": "TEST=true jest --config jest.config.e2e.ts --detectOpenHandles --detectLeaks" }, "repository": { "type": "git",