Skip to content

Commit 87ab2a0

Browse files
committed
chore(config): add typeCoverage configuration and update script
Add TypeScript type coverage tracking with 99% threshold to match current coverage level (99.80%). Move threshold from CLI flag to package.json config for consistency with other Socket projects.
1 parent 3df367e commit 87ab2a0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"coverage": "run-s coverage:*",
4444
"coverage:test": "run-s pretest:unit test:unit:coverage",
4545
"coverage:percent": "node scripts/get-coverage-percentage.mjs",
46-
"coverage:type": "type-coverage --at-least 96",
46+
"coverage:type": "type-coverage",
4747
"coverage:type:verbose": "type-coverage --detail",
4848
"fix": "run-s lint:fix check:lint:fix",
4949
"knip:dependencies": "knip --dependencies",
@@ -129,5 +129,16 @@
129129
"categories": [
130130
"levelup"
131131
]
132+
},
133+
"typeCoverage": {
134+
"cache": true,
135+
"atLeast": 99,
136+
"ignoreAsAssertion": true,
137+
"ignoreCatch": true,
138+
"ignoreEmptyType": true,
139+
"ignore-non-null-assertion": true,
140+
"ignore-type-assertion": true,
141+
"ignore-files": "test/*",
142+
"strict": true
132143
}
133144
}

0 commit comments

Comments
 (0)