Skip to content

Commit eebc4a2

Browse files
authored
👷 fix cov script (#748)
1 parent cd47333 commit eebc4a2

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- name: Install Dependencies
1818
run: npm install
1919
- run: npm run lint
20-
- run: npm run test --collectCoverage
20+
- run: npm run cov
2121
- uses: codecov/codecov-action@v1

‎codecov.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
comment: # this is a top-level key
2+
layout: 'reach, diff, flags, files'
3+
behavior: default
4+
require_changes: false # if true: only post the comment if coverage changes
5+
require_base: no # [yes :: must have a base report to post]
6+
require_head: yes # [yes :: must have a head report to post]

‎jest.config.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ module.exports = {
1818
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
1919
testEnvironment: 'node',
2020
coverageReporters: ['json', 'html'],
21-
verbose: true,
2221
};

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Universal open source web clipper for Notion,OneNote,Joplin,Yuque,Bear,Github and more notes.",
55
"scripts": {
66
"test": "jest",
7+
"cov": "jest --coverage",
78
"dev": "NODE_ENV=development webpack --config webpack/webpack.dev.js --watch",
89
"dev:ff": "TARGET_BROWSER=Firefox NODE_ENV=development webpack --config webpack/webpack.dev.js --watch",
910
"release": "node script/ci.js",

0 commit comments

Comments
 (0)