Error sampling for bar/assertion failures — 309/941

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-10 16:30:11 +00:00
parent e85de7d5cc
commit f97a1711c6

View File

@@ -280,7 +280,7 @@ test.describe('Hyperscript behavioral tests', () => {
console.log(` [${info.count}x] ${e}`);
}
// Show samples of "bar" error specifically
const barSamples = results.filter(r => !r.p && (r.e||'').endsWith('bar') || (r.e||'').endsWith('bar ')).slice(0, 8);
const barSamples = results.filter(r => !r.p && (r.e||'').match(/exception: \w+ *$/)).slice(0, 10);
if (barSamples.length > 0) {
console.log(` "bar" error samples (${barSamples.length}):`);
for (const s of barSamples) console.log(` ${s.s}/${s.n}`);