Skip to content

Commit

Permalink
use glob in testing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AsafBenjaminov committed Dec 25, 2024
1 parent a7c5766 commit c004680
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/test/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ coverageReporter = "lcov"
```

#### Include or Exclude files from coverate

You can customize the files included or excluded from test coverage using the `coverageInclude` and `coverageExclude` options in your `bunfig.toml` file:

```toml
Expand All @@ -102,7 +103,6 @@ coverageExclude = ["**/*.test.ts"]
- `coverageInclude`: Specifies the files or patterns to include in coverage calculations.
- `coverageExclude`: Specifies the files or patterns to exclude from coverage calculations.
- Supported patterns:
- **Glob patterns**: For example, **/*.service.ts matches all .service.ts files in any folder.
- **Regular expressions**: For more advanced and precise matching, such as .*\.service\.ts$.

- **Glob patterns**: For example, \*_/_.service.ts matches all .service.ts files in any folder.

These configurations provide flexibility to focus coverage on specific files or directories while ignoring others.

0 comments on commit c004680

Please sign in to comment.