Skip to content

Commit

Permalink
docs(plugin-coverage): include empty-report omission in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlacenka committed Jun 3, 2024
1 parent 969808a commit ed5cb9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/plugin-coverage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ For instance, the following can be an audit output for line coverage.
}
```

### Providing coverage results in Nx monorepo
### Coverage results alteration

At the moment, the LCOV results include `(empty-report)` functions with missing coverage. These point to various imports or exports, not actual functions. For that reason, they are omitted from the results.

## Providing coverage results in Nx monorepo

As a part of the plugin, there is a `getNxCoveragePaths` helper for setting up paths to coverage results if you are using Nx. The helper accepts all relevant targets (e.g. `test` or `unit-test`) and searches for a coverage path option.
Jest and Vitest configuration options are currently supported:
Expand Down

0 comments on commit ed5cb9b

Please sign in to comment.