Skip to content

Commit 3b0ae7b

Browse files
committed
test(coverage): exclude iocraft renderers (pending stuie migration)
The native iocraft module isn't available in CI, and the iocraft- based renderers are being replaced by stuie (not yet published). Excluding the four affected source files from coverage measurement until the migration lands so they don't drag the aggregate down with unreachable native-module-gated code paths. The replacement (stuie) renderers will be tested fresh once they ship. Files excluded from coverage measurement: - src/utils/terminal/iocraft.mts - src/commands/analytics/AnalyticsRenderer.mts - src/commands/audit-log/AuditLogRenderer.mts - src/commands/threat-feed/ThreatFeedRenderer.mts Surrounding `output-*.mts` files keep their non-renderer logic (markdown formatters, JSON serializers) under coverage; only the Renderer.mts files themselves are doomed. 5534/5534 tests still pass.
1 parent f4bdb56 commit 3b0ae7b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/cli/vitest.config.mts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,19 @@ export default defineConfig({
132132
// Explicit root-level exclusions
133133
'/scripts/**',
134134
'/test/**',
135+
// iocraft renderers — being replaced by stuie. The native
136+
// iocraft module isn't available in CI and stuie isn't
137+
// published yet, so coverage measurement is excluded until
138+
// the migration lands. The Renderer.mts files here are all
139+
// doomed; the replacement (stuie) renderers will be tested
140+
// fresh once stuie is published. Only the *Renderer.mts
141+
// files are excluded — the surrounding output-*.mts files
142+
// contain non-iocraft logic (markdown / JSON formatters)
143+
// that's still tested directly.
144+
'src/utils/terminal/iocraft.mts',
145+
'src/commands/analytics/AnalyticsRenderer.mts',
146+
'src/commands/audit-log/AuditLogRenderer.mts',
147+
'src/commands/threat-feed/ThreatFeedRenderer.mts',
135148
],
136149
include: ['src/**/*.mts', 'src/**/*.ts'],
137150
clean: true,

0 commit comments

Comments
 (0)