Skip to content

Commit 913fbc5

Browse files
test: add interactive CLI tests
1 parent a764bee commit 913fbc5

File tree

8 files changed

+666
-25
lines changed

8 files changed

+666
-25
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ api/.env
55
api/sig
66
.tags
77

8-
cli/dist
8+
cli/dist
9+
cli/test/out

cli/npm-shrinkwrap.json

Lines changed: 195 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"build:watch": "npm run build -- --watch",
1414
"check-format": "prettier --check .",
1515
"format": "prettier --write .",
16-
"lint": "eslint src"
16+
"lint": "eslint src",
17+
"test:pre": "echo 'testing' && which iapp || (echo 'iapp CLI is not installed' && exit 1)",
18+
"test": "npm run test:pre && node --test test/**/*.test.ts"
1719
},
1820
"author": "iExec",
1921
"license": "Apache-2.0",
@@ -60,9 +62,11 @@
6062
"@types/debug": "^4.1.12",
6163
"@types/dockerode": "^3.3.37",
6264
"@types/figlet": "^1.7.0",
65+
"@types/node": "^25.0.3",
6366
"@types/prompts": "^2.4.9",
6467
"@types/ws": "^8.18.1",
6568
"@types/yargs": "^17.0.33",
69+
"cli-testing-library": "^3.0.1",
6670
"eslint": "^9.24.0",
6771
"eslint-plugin-unicorn": "^58.0.0",
6872
"globals": "^16.0.0",

0 commit comments

Comments
 (0)