test(refactor): [ENG-COVERAGE-01] index public contracts and exact candidate evidence

This commit is contained in:
Harvey Zhao committed 2026-09-12 10:38:29 +08:00
1 parent 6abac891ce
commit f35fb87615
22 files changed
+11007 -7

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export default async function* contractReporter(events) {
for await (const event of events) {
if (['test:pass', 'test:fail', 'test:summary'].includes(event.type)) {
const { name, file, nesting, skip, todo, counts, success, details } = event.data
yield `${JSON.stringify({ type: event.type, name, file, nesting, skip, todo, counts, success, kind: details?.type, error: details?.error?.message })}\n`
}
}
}