Implements the Payload-backed IConsent that reads/writes users.consentState and emits CONSENT_GRANT/CONSENT_WITHDRAW audit entries via injected auditLog. Adds RecordingConsent test double in core-testing for unit-test injection. Adds bindProductionConsent/bindDevSeedConsent DI binders and InMemoryConsent for dev/seed contexts. Contract tests cover grant/withdraw/isGranted round-trip, audit entry shape, metadata persistence (bannerVersion/policyVersion/method), and getCategories reflection of state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
133 lines
2.4 KiB
JSON
133 lines
2.4 KiB
JSON
{
|
|
"generatedAt": "2026-05-19T12:37:46.347Z",
|
|
"commit": "5792b74",
|
|
"repo": {
|
|
"statements": 96.55,
|
|
"branches": 91.42,
|
|
"functions": 96.39,
|
|
"lines": 96.55,
|
|
"counts": {
|
|
"lf": 4469,
|
|
"lh": 4315,
|
|
"brf": 874,
|
|
"brh": 799,
|
|
"fnf": 277,
|
|
"fnh": 267
|
|
}
|
|
},
|
|
"byPackage": {
|
|
"@repo/auth": {
|
|
"statements": 93.81,
|
|
"branches": 90.82,
|
|
"functions": 100,
|
|
"lines": 93.81,
|
|
"counts": {
|
|
"lf": 791,
|
|
"lh": 742,
|
|
"brf": 98,
|
|
"brh": 89,
|
|
"fnf": 44,
|
|
"fnh": 44
|
|
}
|
|
},
|
|
"@repo/blog": {
|
|
"statements": 96.35,
|
|
"branches": 88.65,
|
|
"functions": 100,
|
|
"lines": 96.35,
|
|
"counts": {
|
|
"lf": 739,
|
|
"lh": 712,
|
|
"brf": 141,
|
|
"brh": 125,
|
|
"fnf": 29,
|
|
"fnh": 29
|
|
}
|
|
},
|
|
"@repo/core-analytics": {
|
|
"statements": 100,
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"counts": {
|
|
"lf": 52,
|
|
"lh": 52,
|
|
"brf": 12,
|
|
"brh": 12,
|
|
"fnf": 10,
|
|
"fnh": 10
|
|
}
|
|
},
|
|
"@repo/core-consent": {
|
|
"statements": 97.87,
|
|
"branches": 86.44,
|
|
"functions": 91.67,
|
|
"lines": 97.87,
|
|
"counts": {
|
|
"lf": 188,
|
|
"lh": 184,
|
|
"brf": 59,
|
|
"brh": 51,
|
|
"fnf": 24,
|
|
"fnh": 22
|
|
}
|
|
},
|
|
"@repo/core-shared": {
|
|
"statements": 98.03,
|
|
"branches": 95.89,
|
|
"functions": 92.08,
|
|
"lines": 98.03,
|
|
"counts": {
|
|
"lf": 1067,
|
|
"lh": 1046,
|
|
"brf": 316,
|
|
"brh": 303,
|
|
"fnf": 101,
|
|
"fnh": 93
|
|
}
|
|
},
|
|
"@repo/marketing-pages": {
|
|
"statements": 95.93,
|
|
"branches": 83.93,
|
|
"functions": 100,
|
|
"lines": 95.93,
|
|
"counts": {
|
|
"lf": 762,
|
|
"lh": 731,
|
|
"brf": 112,
|
|
"brh": 94,
|
|
"fnf": 32,
|
|
"fnh": 32
|
|
}
|
|
},
|
|
"@repo/media": {
|
|
"statements": 97.15,
|
|
"branches": 90.63,
|
|
"functions": 100,
|
|
"lines": 97.15,
|
|
"counts": {
|
|
"lf": 561,
|
|
"lh": 545,
|
|
"brf": 96,
|
|
"brh": 87,
|
|
"fnf": 24,
|
|
"fnh": 24
|
|
}
|
|
},
|
|
"@repo/navigation": {
|
|
"statements": 98.06,
|
|
"branches": 95,
|
|
"functions": 100,
|
|
"lines": 98.06,
|
|
"counts": {
|
|
"lf": 309,
|
|
"lh": 303,
|
|
"brf": 40,
|
|
"brh": 38,
|
|
"fnf": 13,
|
|
"fnh": 13
|
|
}
|
|
}
|
|
}
|
|
}
|