Skip to content

Commit 95102f9

Browse files
committed
chore: add tests for cli; fix: internal tests
1 parent 7767b19 commit 95102f9

File tree

4 files changed

+794
-1
lines changed

4 files changed

+794
-1
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"test:--type-suffix--type-prefix": "node tests/spec/typeSuffixPrefix/test.js",
4848
"test:--dot-path-params": "node tests/spec/dot-path-params/test.js",
4949
"test:--primitive-type-constructs": "node tests/spec/primitive-type-constructs/test.js",
50-
"test:--cli": "node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix",
50+
"test:--cli": "node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix && node tests/spec/cli/test.js",
5151
"test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js",
5252
"test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js",
5353
"test:--patch": "node tests/spec/patch/test.js",
@@ -62,6 +62,7 @@
6262
"@types/node": "^18.11.7",
6363
"@types/prettier": "^2.7.1",
6464
"all-contributors-cli": "^6.20.0",
65+
"axios": "^1.1.3",
6566
"cross-env": "^7.0.3",
6667
"git-diff": "^2.0.6",
6768
"husky": "^4.3.6",

0 commit comments

Comments
 (0)