Skip to content

Commit e3f4874

Browse files
authored
chore: Fix coverage script for typescript code (#2473)
Change the nyc configuration to utilize source-maps in tandem with typescript settings to get code coverage on our src.
1 parent 1ec2a05 commit e3f4874

File tree

5 files changed

+308
-157
lines changed

5 files changed

+308
-157
lines changed

.mocharc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"extension": ["js"],
3-
"require": "ts-node/register",
3+
"require": ["ts-node/register", "source-map-support/register"],
44
"file": "test/tools/runner",
55
"ui": "test/tools/runner/metadata_ui.js",
66
"recursive": true,
77
"timeout": 60000
8-
}
8+
}

.nycrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "@istanbuljs/nyc-config-typescript",
3+
"include": ["src/**/*.ts"],
4+
"reporter": ["lcovonly", "text-summary"]
5+
}

0 commit comments

Comments
 (0)