diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 885e6867059..2f7386e8bea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -107,6 +107,7 @@ jobs: with: name: coverage-jest path: .nyc_output/*.json + e2e: needs: [prime-build] name: Playwright tests @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a7d54a0274..1304d81e372 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/jest.config.js b/jest.config.js index 4e3bea7f565..2655b71f460 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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',