-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Customize reporter by options? #513
Comments
I've opened #506 for adding dark mode. The plan is that this would be accomplished through CSS |
@coreyfarrell Good to hear the explanation! By the way, what I meant by "title" option was to change "All files"(photo below) or browser's tab title to what I want. (Because I generate multiple coverages in monorepo, and thought It'd be convenient if the title of the html page can be each subproject's name) |
I'm not actually that familiar with jest so I don't know if it has the ability to configure per report options. That said we don't have an option to configure the One thought for a monorepo I would generally produce a merged report for the whole repo though I don't know how that would be accomplished using jest. The istanbuljs monorepo uses nyc for it's own coverage. Each module is tested from |
It's currently unsupported, but I'd happily merge a PR to jest adding support for passing options to Regarding monorepos - jest is in a monorepo and it runs all of its test in a single run from root. Since we transpile we also map paths from |
@coreyfarrell @SimenB As like @SimenB mentioned, running However, while developing, I usually generate coverage reports only for a few specific packages, not the entire monorepo, to save time. In that situation, I feet it'd be convenient if "title" is configurable, to make it visually very clear which package report I'm reading, as there would be several indepedent report tabs in the web browser. |
@SimenB |
Nope, that's not supported. You can use |
If existent, may I ask a link to usage docs for it? # Generate ./jest-coverage, with json, html reporter, for example
npm run test:byjest # this runs `jest --coverage`
# Generate ./foo-coverage, with json and html reporter, for example
npm run test:byfoo
# Do magic. This generates merged json and html reports.
# But how?
nyc magic |
We don't have docs directly for this specific use case but an example is https://github.com/istanbuljs/istanbuljs/blob/master/monorepo-merge-reports.js. This script is run by the |
Hi,
can we customize reporters by options or configuration?
Like, to say, "dark mode" or "title" on html reporter.
The text was updated successfully, but these errors were encountered: