fix(scripts): exempt Storybook stories from coverage:diff gate
Story files are excluded from vitest by design (they run in Storybook
runner, not vitest). Add *.stories.{ts,tsx} to ALLOWED_GLOBS so the
L1 diff gate doesn't flag them as "new untested file".
Also add error-handling test for useOptionalConsent rethrow path
(cookie-consent-banner lines 52-53) achieving 100% statement coverage.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"generatedAt": "2026-05-19T21:20:25.856Z",
|
||||
"commit": "de17803",
|
||||
"generatedAt": "2026-05-19T21:23:46.645Z",
|
||||
"commit": "1b6f2d1",
|
||||
"repo": {
|
||||
"statements": 97.34,
|
||||
"branches": 91.98,
|
||||
"statements": 97.38,
|
||||
"branches": 92.08,
|
||||
"functions": 97.09,
|
||||
"lines": 97.34,
|
||||
"lines": 97.38,
|
||||
"counts": {
|
||||
"lf": 5742,
|
||||
"lh": 5589,
|
||||
"brf": 1147,
|
||||
"brh": 1055,
|
||||
"lf": 5758,
|
||||
"lh": 5607,
|
||||
"brf": 1149,
|
||||
"brh": 1058,
|
||||
"fnf": 344,
|
||||
"fnh": 334
|
||||
}
|
||||
@@ -115,15 +115,15 @@
|
||||
}
|
||||
},
|
||||
"@repo/core-ui": {
|
||||
"statements": 99.49,
|
||||
"branches": 90.2,
|
||||
"statements": 100,
|
||||
"branches": 91.35,
|
||||
"functions": 100,
|
||||
"lines": 99.49,
|
||||
"lines": 100,
|
||||
"counts": {
|
||||
"lf": 396,
|
||||
"lh": 394,
|
||||
"brf": 102,
|
||||
"brh": 92,
|
||||
"lf": 412,
|
||||
"lh": 412,
|
||||
"brf": 104,
|
||||
"brh": 95,
|
||||
"fnf": 18,
|
||||
"fnh": 18
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user