From bb6a0e1a33b25dcbf22557f5f2a893e00d2332d3 Mon Sep 17 00:00:00 2001 From: Enrico Regge Date: Wed, 8 Sep 2021 01:12:16 +0200 Subject: [PATCH 1/2] fix(build): fixed integration test execution --- package.json | 1 - test-integration.sh | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4614196..f3c5d1f 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ }, "dependencies": { "@types/node": "^12.20.24", - "code-engine-sdk-demo": "file:example", "extend": "^3.0.2", "ibm-cloud-sdk-core": "^2.14.1" }, diff --git a/test-integration.sh b/test-integration.sh index ef08741..ea5a7a3 100755 --- a/test-integration.sh +++ b/test-integration.sh @@ -7,10 +7,11 @@ echo "Running integration tests..." # Setup example package -npm install -p example +cd example +npm install # Run example, get exit code -exampleoutput=$(node example/example.js) +exampleoutput=$(node ./example.js) exampleexit=$? if [ $exampleexit -ne 0 ]; then echo "Integration tests failed with exit code $exampleexit" From 464bd714be7375357bdd4aecc60dfafe41a9967b Mon Sep 17 00:00:00 2001 From: Enrico Regge Date: Wed, 8 Sep 2021 01:13:23 +0200 Subject: [PATCH 2/2] chore: added dry-run --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f3c5d1f..fd85e52 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint-fix": "npm run eslint:fix && npm run tslint:fix", "build": "tsc && cp package.json dist/", "prepublishOnly": "npm run build", - "postversion": "tsc-publish --no-checks", + "postversion": "tsc-publish --no-checks --dry-run", "jest": "jest", "test": "npm run build && npm run lint && jest test/", "test-unit": "npm run build && jest test/unit/",