Skip to content

test: add test for subcommand - #191

Merged
pi0 merged 1 commit into
unjs:mainfrom
ysknsid25:test/add-test-for-subcommand
Apr 4, 2025
Merged

pi0 merged 1 commit into
unjs:mainfrom
ysknsid25:test/add-test-for-subcommand

Conversation

@ysknsid25

Copy link
Copy Markdown
Contributor

add test for subcommand.

As a result, test coverage of command.ts has improved.

before

image

after

image

Comment thread test/main.test.ts
runMain,
showUsage,
} from "../src";
import * as mainModule from "../src/main";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is unused

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@pi0
pi0 merged commit 241b948 into unjs:main Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants