Skip to content

Commit 0c849dc

Browse files
committed
fix coverage
Signed-off-by: Sebastian Beltran <[email protected]>
1 parent 21847bb commit 0c849dc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
5555
- name: Run tests
5656
shell: bash
57-
run: npm run test
57+
run: npm run test:ci
5858

5959
- name: Upload code coverage
6060
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: Run tests
7272
shell: bash
73-
run: npm run test
73+
run: npm run test:ci
7474

7575
- name: Upload code coverage
7676
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
],
5252
"scripts": {
5353
"lint": "standard",
54-
"test": "c8 --check-coverage --statements 100 mocha"
54+
"test": "mocha",
55+
"test:ci": "c8 --reporter=lcovonly --reporter=text --check-coverage --statements 100 npm test",
56+
"test:cov": "c8 --reporter=html --reporter=text npm test"
5557
}
5658
}

0 commit comments

Comments
 (0)