Skip to content

Commit

Permalink
Add coverage report to GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marinojoey committed Aug 31, 2023
1 parent 1fd7a7a commit 7dffd8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "coverage"
on:
pull_request:
pull_request_target:
branches:
- develop
jobs:
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,13 @@ yarn test

#### Generating Test Coverage Report

To generate a test coverage report using Jest, follow these steps:

Run the following command in your terminal:
To generate a test coverage report using Jest run the following command in your terminal:

```sh
npx jest --coverage
```

This command will run the tests and generate a coverage report. If you're using macOS, you can directly access the coverage report in your browser by opening the following URL:
If you're using macOS, you can directly access the coverage report in your browser by opening the following URL:

```
file:///Users/<userName>/sandbag/coverage/lcov-report/index.html
Expand Down

0 comments on commit 7dffd8a

Please sign in to comment.