Skip to content

Commit 790a871

Browse files
committed
fix: code coverage
1 parent 3f2f662 commit 790a871

File tree

6 files changed

+828
-119
lines changed

6 files changed

+828
-119
lines changed

.github/workflows/nodejs.yml

-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ jobs:
124124
- name: Run E2E tests for webpack version ${{ matrix.webpack-version }}
125125
run: npm run test:e2e -- --shard=${{ matrix.shard }}
126126

127-
- name: generate coverage
128-
run: npx nyc report --reporter=lcov
129-
130127
- name: Submit coverage data to codecov
131128
uses: codecov/codecov-action@v4
132129
with:

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = (api) => {
1616
},
1717
],
1818
],
19-
plugins: ["@babel/plugin-transform-object-assign"],
19+
plugins: ["@babel/plugin-transform-object-assign", "istanbul"],
2020
env: {
2121
test: {
2222
presets: [

nyc.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
3+
module.exports = {
4+
include: ["lib/**"],
5+
reporter: ["html", "text", "lcov"],
6+
excludeNodeModules: true,
7+
};

0 commit comments

Comments
 (0)