Skip to content

Commit

Permalink
docs: change link style and correct TypeScript (#2709)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven committed Jan 19, 2023
1 parent 46f744e commit 8560758
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/guide/coverage.md
Expand Up @@ -107,12 +107,12 @@ export default defineConfig({

## Ignoring code

Both coverage providers have their own ways how to ignore code from coverage reports.
Both coverage providers have their own ways how to ignore code from coverage reports:

- `c8`: https://github.com/bcoe/c8#ignoring-uncovered-lines-functions-and-blocks
- `ìstanbul` https://github.com/istanbuljs/nyc#parsing-hints-ignoring-lines
- [`c8`](https://github.com/bcoe/c8#ignoring-uncovered-lines-functions-and-blocks)
- [`ìstanbul`](https://github.com/istanbuljs/nyc#parsing-hints-ignoring-lines)

When using Typescript the source codes are transpiled using `esbuild`, which strips all comments from the source codes ([esbuild#516](https://github.com/evanw/esbuild/issues/516)).
When using TypeScript the source codes are transpiled using `esbuild`, which strips all comments from the source codes ([esbuild#516](https://github.com/evanw/esbuild/issues/516)).
Comments which are considered as [legal comments](https://esbuild.github.io/api/#legal-comments) are preserved.

For `istanbul` provider you can include a `@preserve` keyword in the ignore hint.
Expand Down

0 comments on commit 8560758

Please sign in to comment.