Skip to content

Use ctrf lib types#295

Merged
Ma11hewThomas merged 3 commits into
mainfrom
use-ctrf-lib-types
May 3, 2026
Merged

Use ctrf lib types#295
Ma11hewThomas merged 3 commits into
mainfrom
use-ctrf-lib-types

Conversation

@Ma11hewThomas
Copy link
Copy Markdown
Contributor

No description provided.

- Replace internal src/ctrf/core/types/ctrf.d.ts with imports from ctrf npm package
- Rename Report → CTRFReport, RootInsights → Insights, InsightsMetric → MetricDelta across all 36 files
- Add src/ctrf/adapter/legacy-types.ts: loose types for parse boundaries (LegacyTest, LegacyEnvironment, LegacyCTRFReport)
- Add src/ctrf/adapter/normalize.ts: plugin-based normalization pipeline (preV1Plugin, createReportNormalizer, normalizeLegacyReport)
- Apply normalizeLegacyReport at all parse boundaries: readReportFromFile, readReportsFromDirectory, readReportsFromGlobPattern, JUnit conversion path
- Add ?? 0 guards in formatInsightsMetricAsPercentage for now-optional MetricDelta fields
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

build-and-test: Run #1557

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
89 89 0 0 0 0 0 1.1s

🎉 All tests passed!

Github Test Reporter by CTRF 💚

@Ma11hewThomas Ma11hewThomas merged commit 1a0af00 into main May 3, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant