Skip to content

Commit

Permalink
ci(): Add Jest coverage to the report (#9836)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Apr 30, 2024
1 parent 2c0ae33 commit 6b6a5fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -107,6 +107,7 @@ jobs:
with:
name: coverage-jest
path: .nyc_output/*.json

e2e:
needs: [prime-build]
name: Playwright tests
Expand Down Expand Up @@ -156,6 +157,10 @@ jobs:
with:
name: coverage-e2e
path: .nyc_output
- uses: actions/download-artifact@v3
with:
name: coverage-jest
path: .nyc_output
- run: ls -l .nyc_output
- run: npm run coverage:report
- uses: ShaMan123/lcov-reporter-action@v1.2.2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

## [next]

- ci(): Add Jest coverage to the report [#9836](https://github.com/fabricjs/fabric.js/pull/9836)
- test(): Add cursor animation testing and migrate some easy one to jest [#9829](https://github.com/fabricjs/fabric.js/pull/9829)
- fix(Group, Controls): Fix interactive group actions when negative scaling is involved [#9811](https://github.com/fabricjs/fabric.js/pull/9811)
- fix(): Replace 'hasOwn' with 'in' operator in typeAssertions check [#9812](https://github.com/fabricjs/fabric.js/pull/9812)
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Expand Up @@ -29,7 +29,7 @@ module.exports = {
coverageDirectory: '.nyc_output',

// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: ['/node_modules/'],
coveragePathIgnorePatterns: ['/node_modules/', 'jest.extend.ts'],

// Indicates which provider should be used to instrument code for coverage (babel)
coverageProvider: 'v8',
Expand Down

0 comments on commit 6b6a5fc

Please sign in to comment.