Skip to content

Commit

Permalink
Merge pull request #1630 from digitalfabrik/administration_test_cover…
Browse files Browse the repository at this point in the history
…age_report

Administration test coverage report
  • Loading branch information
f1sh1918 committed Sep 25, 2024
2 parents 5bd4139 + c26ad70 commit 46805d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,12 @@ jobs:
name: Lint
working_directory: ~/project/administration
- run:
command: npm run test -- --maxWorkers=2
name: Test
command: npm run test:coverage -- --maxWorkers=2
name: Run tests and generate coverage report
working_directory: ~/project/administration
- store_artifacts:
destination: ~/attached_workspace/coverage
path: ~/project/administration/src/coverage
- run:
command: npm run ts:check
name: Typescript
Expand Down
7 changes: 5 additions & 2 deletions .circleci/src/jobs/check_administration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ steps:
command: npm run lint
working_directory: ~/project/administration
- run:
name: Test
command: npm run test -- --maxWorkers=2
name: Run tests and generate coverage report
command: npm run test:coverage -- --maxWorkers=2
working_directory: ~/project/administration
- store_artifacts:
path: ~/project/administration/src/coverage
destination: ~/attached_workspace/coverage
- run:
name: Typescript
command: npm run ts:check
Expand Down
1 change: 1 addition & 0 deletions administration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"start": "set -ae; REACT_APP_APPLICATION_COMMIT=$(./application_commit.sh); ts-node scripts/start.ts",
"build": "set -ae; REACT_APP_APPLICATION_COMMIT=$(./application_commit.sh); ts-node scripts/build.ts",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watchAll",
"lint": "NODE_ENV=test eslint . && prettier . --check",
"ts:check": "tsc --build",
Expand Down

0 comments on commit 46805d6

Please sign in to comment.