-
Notifications
You must be signed in to change notification settings - Fork 94
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
Clarify config #342
Comments
yeah I'm struggling to understand how I'm supposed to use
That's exactly the behavior I found as well. |
Okay I think I figured it out.
So I was able to make it work specifying npx c8 --include "src/handlers/*/handler.ts" --include "src/stubs/*.ts" ava The coverage report correctly shows the files I expected to see. Hope it helps! |
In addition, it should be documented that |
It's been years, but in case it's still relevant:
In the yargs setup, you can explicitly set an arg to be an array regardless of how many times it occurs in CLI ( |
Configuration options for "include" and "src" are very unclear. Without specifying either, several extraneous files are included in the report and some are actually not included at all (despite their tests running).
package.json
file directory
c8 coverage report
Unexpectedly,
./loader.mjs
and./mocha.setup.js
are included, yetForm.spec.js
is not.Specifying anything for
"include"
seems to cause the coverage report to be empty, and"src"
seems to have no affect whatsoever.The text was updated successfully, but these errors were encountered: