Skip to content

Commit

Permalink
fix: code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdikhashan committed Aug 4, 2024
1 parent 3f2f662 commit 790a871
Show file tree
Hide file tree
Showing 6 changed files with 828 additions and 119 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ jobs:
- name: Run E2E tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:e2e -- --shard=${{ matrix.shard }}

- name: generate coverage
run: npx nyc report --reporter=lcov

- name: Submit coverage data to codecov
uses: codecov/codecov-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = (api) => {
},
],
],
plugins: ["@babel/plugin-transform-object-assign"],
plugins: ["@babel/plugin-transform-object-assign", "istanbul"],
env: {
test: {
presets: [
Expand Down
7 changes: 7 additions & 0 deletions nyc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";

module.exports = {
include: ["lib/**"],
reporter: ["html", "text", "lcov"],
excludeNodeModules: true,
};
Loading

0 comments on commit 790a871

Please sign in to comment.