From 46d404dc25c34210c961f87725bc229834783f42 Mon Sep 17 00:00:00 2001 From: Sagar Rajput Date: Tue, 16 Apr 2024 01:29:16 +0530 Subject: [PATCH] chore: added jest coverage setup - added file directory --- .github/workflows/jest-coverage.yml | 4 ++-- frontend/package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jest-coverage.yml b/.github/workflows/jest-coverage.yml index ec2e89e251..6a52e2cd43 100644 --- a/.github/workflows/jest-coverage.yml +++ b/.github/workflows/jest-coverage.yml @@ -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: | diff --git a/frontend/package.json b/frontend/package.json index 6040b2e3f0..9ab7273fbf 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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"