Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat—add coverage type support #23

Merged

Conversation

DisasterMan78
Copy link
Contributor

@DisasterMan78 DisasterMan78 commented Mar 6, 2023

A simple PR to add support for choosing the type of coverage report, as it currently defaults to statements.

Tested in a working project using npm-link (https://docs.npmjs.com/cli/v9/commands/npm-link)

Added "test:make-badges": "coverage-badges", to package.json scripts
Added ![Coverage](./coverage/badges.svg) to README.md

Running yarn test:make-badges --type lines --label Lines results in:
image

@jaywcjlove jaywcjlove merged commit 09057be into jaywcjlove:main Mar 7, 2023
github-actions bot pushed a commit that referenced this pull request Mar 7, 2023
* Add support for coverage types

* Update README

* Improve tests

* Commit action.js

---------

Co-authored-by: 小弟调调™ <[email protected]> 09057be
jaywcjlove added a commit that referenced this pull request Mar 7, 2023
github-actions bot pushed a commit that referenced this pull request Mar 7, 2023
jaywcjlove added a commit that referenced this pull request Mar 7, 2023
github-actions bot pushed a commit that referenced this pull request Mar 7, 2023
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