Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1a6b82

Browse files
committed
added code coverage report
1 parent 4f433e7 commit d1a6b82

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.vscode/settings.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,11 @@
220220
"go.testFlags": ["-short", "-coverpkg=./..."],
221221
// We often use a version of TypeScript that's ahead of the version shipped
222222
// with VS Code.
223-
"typescript.tsdk": "./site/node_modules/typescript/lib"
223+
"typescript.tsdk": "./site/node_modules/typescript/lib",
224+
"jest.coverageColors": {
225+
"uncovered": "#FF0000",
226+
"covered": "#008000",
227+
"partially-covered": "#FFFF00"
228+
},
229+
"jest.coverageFormatter": "GutterFormatter"
224230
}

site/jest.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ module.exports = {
6969
"!<rootDir>/out/**/*.*",
7070
"!<rootDir>/storybook-static/**/*.*",
7171
],
72+
coverageDirectory: "<rootDir>/test-results",
7273
};

0 commit comments

Comments
 (0)