provide-telemetry
2026-03-19
Fixed three TypeScript logger bugs, achieved 100% coverage, and excluded Stryker sandbox from coverage
11 files · 165+ · 71-
Three TypeScript logger bug fixes
2 files changed
logger.tsFixed static isBrowser check, stale config reference, and Node.js write hook (62 lines changed)logger.test.tsLogger tests expanded to cover all three bug scenarios (123 lines changed)
- Fixed isBrowser being evaluated once at module load (static) instead of per-call, causing incorrect behavior in hybrid environments
remediate
behavioral
1 file
logger.ts
- Fixed stale config reference where the logger captured config at initialization rather than reading it fresh on each call
remediate
internal
1 file
logger.ts
- Fixed Node.js write hook not functioning correctly in certain configurations
remediate
internal
1 file
logger.ts
100% test coverage and Stryker sandbox coverage exclusion
8 files changed
vitest.config.tsAdded Stryker mutation sandbox directory exclusion from v8 coverage reportingpropagation.tsMinor fix to resolve lint errorscardinality.test.tsProperty test lint fixconfig.test.tsProperty test lint fixcontext.test.tsProperty test lint fixpii.test.tsProperty test lint fixsampling.test.tsProperty test lint fixschema.test.tsProperty test lint fix
- Resolved all lint errors in the TypeScript package
remediate
internal
7 files
propagation.tscardinality.test.tsconfig.test.tscontext.test.tspii.test.tssampling.test.tsschema.test.ts
- Achieved 100% test coverage for the TypeScript telemetry package
qualify
behavioral
1 file
vitest.config.ts
- Excluded Stryker mutation testing sandbox directory from v8 coverage reports to prevent false coverage drops
qualify
internal
1 file
vitest.config.ts
Pre-commit config update
1 file changed
.pre-commit-config.yamlAuto-generated pre-commit config update (33 lines added)