Skip to content

Commit

Permalink
chore: added jest coverage setup - added file directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Apr 15, 2024
1 parent 0bbe3f3 commit 46d404d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
run: cd frontend && yarn install

- name: Run Jest with Coverage
run: cd frontend && npm jest --coverage
run: cd frontend && npm test --coverage

- name: Upload Coverage Results
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage
path: coverage # Adjust this path according to your coverage report location

- name: Display Coverage Summary
run: |
Expand Down
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"playwright:codegen:local": "playwright codegen http://localhost:3301",
"playwright:codegen:local:auth": "yarn playwright:codegen:local --load-storage=tests/auth.json",
"husky:configure": "cd .. && husky install frontend/.husky && cd frontend && chmod ug+x .husky/*",
"commitlint": "commitlint --edit $1"
"commitlint": "commitlint --edit $1",
"test": "jest --coverage"
},
"engines": {
"node": ">=16.15.0"
Expand Down

0 comments on commit 46d404d

Please sign in to comment.