-
Notifications
You must be signed in to change notification settings - Fork 681
test: adds test coverage report to @ganache/cli, improve coverage #3735
base: develop
Are you sure you want to change the base?
Conversation
…up as a background process
… (but don't show that in the help, because it's ugly)
…tance files if the process no longer exists.
…tance data file to JSON format.
…mprove detach help
mmand matches (otherwise assume the process has been killed)
…process.cmd matches.
944b516
to
9466475
Compare
c6e2606
to
784e098
Compare
@@ -21,6 +21,7 @@ export type StartArgs<TFlavorName extends FlavorName> = | |||
export type GanacheArgs = | |||
| (AbstractArgs<"stop"> & { name: string }) | |||
| AbstractArgs<"list"> | |||
| AbstractArgs<"none"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required because Yargs parser no longer terminates the process when argument validation fails (or --help
) is passed.
2475590
to
3c2a8b9
Compare
…ached. Slow tests, but probably worth it.
… process-name test.
57cf37e
to
eea355b
Compare
if (!isFinite(port) || port < 1 || port > 65535) { | ||
throw new Error( | ||
`Port should be >= 0 and < 65536. Received ${port}.` | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will conflict with #4070
src/packages/cli/package.json
Outdated
@@ -71,7 +73,7 @@ | |||
"@trufflesuite/ps-list": "0.0.3", | |||
"@types/node": "17.0.0", | |||
"chalk": "4.1.0", | |||
"cli-table": "0.3.11", | |||
"marked-terminal": "4.1.0" | |||
"marked-terminal": "4.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this change on purpose? It seems like the versions are the same and they are now out of alphabetical order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope!
Makes some of the components in @ganache/cli more testable, adds coverage report, and improves test coverage to
process-name.ts
andargs.ts
. The tests forargs.ts
cover all of the "general" configuration cases, but does not cover the flavor specific arguments.Fixes: #3978