Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ jobs:
- name: Lint
run: yarn lint
- name: Test
run: yarn test
run: yarn test:coverage
- name: Upload coverage report
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: coverage-report
path: coverage/
if-no-files-found: warn
- name: Build app/
run: yarn build
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supportedVersions.jwt
localdev/

# caches and temp
/coverage
jest_dx/
node-compile-cache/
coderabbit-update-*/
Expand Down
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
module.exports = {
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.spec.{ts,tsx}',
'!src/**/*.test.{ts,tsx}',
'!src/**/*.d.ts',
'!src/.jest/**',
'!src/public/**',
],
coverageReporters: ['text-summary', 'lcov', 'json-summary'],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: ['/node_modules/', '/app/', '/dist/'],
projects: [
{
preset: 'ts-jest',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"release": "yarn electron-builder --publish onTagOrDraft --x64",
"install-app-deps": "electron-builder install-app-deps",
"test": "xvfb-maybe jest --forceExit --detectOpenHandles --maxWorkers=1",
"test:coverage": "xvfb-maybe jest --coverage --forceExit --detectOpenHandles --maxWorkers=1",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"lint": "run-s .:lint:eslint .:lint:tsc",
".:lint:eslint": "eslint .",
Expand Down
Loading