Skip to content

Commit 03fa86c

Browse files
committed
fix(test): configure nyc correctly for TypeScript and turn on coverage for ALL files
1 parent ffc1350 commit 03fa86c

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.nycrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "@istanbuljs/nyc-config-typescript",
3+
"all": true,
4+
"cache": false,
5+
"clean": true,
6+
"include": [
7+
"src/**/*.ts"
8+
],
9+
"exclude": [
10+
"test/**/*"
11+
]
12+
}

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"pkg-up": "3.1.0"
4747
},
4848
"devDependencies": {
49+
"@istanbuljs/nyc-config-typescript": "1.0.2",
4950
"@semantic-release/changelog": "6.0.1",
5051
"@semantic-release/commit-analyzer": "9.0.2",
5152
"@semantic-release/git": "10.0.1",

0 commit comments

Comments
 (0)