Skip to content

Commit 2416c07

Browse files
test: add interactive CLI tests
1 parent a764bee commit 2416c07

File tree

8 files changed

+644
-25
lines changed

8 files changed

+644
-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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
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": "echo 'testing' && which iapp && node --test test/**/*.test.ts || (echo 'iapp CLI is not installed' && exit 1)"
1718
},
1819
"author": "iExec",
1920
"license": "Apache-2.0",
@@ -60,9 +61,11 @@
6061
"@types/debug": "^4.1.12",
6162
"@types/dockerode": "^3.3.37",
6263
"@types/figlet": "^1.7.0",
64+
"@types/node": "^25.0.3",
6365
"@types/prompts": "^2.4.9",
6466
"@types/ws": "^8.18.1",
6567
"@types/yargs": "^17.0.33",
68+
"cli-testing-library": "^3.0.1",
6669
"eslint": "^9.24.0",
6770
"eslint-plugin-unicorn": "^58.0.0",
6871
"globals": "^16.0.0",

0 commit comments

Comments
 (0)