Skip to content

test(bench): fail shared no-error gate on console errors + strengthen task assertions (split from #216)#240

Open
hfurkanbozkurt wants to merge 1 commit into
mainfrom
test/bench-tasks-console-error-gate
Open

test(bench): fail shared no-error gate on console errors + strengthen task assertions (split from #216)#240
hfurkanbozkurt wants to merge 1 commit into
mainfrom
test/bench-tasks-console-error-gate

Conversation

@hfurkanbozkurt

Copy link
Copy Markdown
Contributor

Summary

Splits the tasks/** test-hardening changes out of #216 (bench/report-single-table) into this standalone PR off main. These changes are independent of #216's bench report-render redesign and stand on their own, so they're being landed separately.

The corresponding tasks/ edits have been removed from #216 (and forward-merged up the stack #217#218) so the stack no longer carries them.

What's in here (tasks/** only — 12 files, +148/-14)

Shared no-error gate added to watchErrors() in all 10 task specs so a spec now fails on unexpected console.error output:

  • async-word-counter, auth-notes, cognito-profile, collab-presence-board, email-digest, file-gallery, kb-chat-agent, observability-api, oidc-dsql-notes, sql-kb-catalog

Strengthened assertions:

  • observability-api: +1 test (asserts api.echo rejects falsy args)
  • oidc-dsql-notes: +1 test (unauthenticated note creation is refused)
  • sql-kb-catalog: +2 toContainText(/refund/i) catalog assertions

Fixes:

  • async-word-counter: wc-list wait changed toBeVisibletoBeAttached (more robust)
  • async-word-counter/PROMPT.md: punctuation fix
  • email-digest/PROMPT.md: scope-note clarification

Changeset

No changeset required. verify-changeset-coverage.ts only requires a changeset for files under packages/** (publishable @aws-blocks/* packages); tasks/** are benchmark fixtures, not published packages, so the check reports "No publishable packages were changed." Confirmed against scripts/verify-changeset-coverage.ts and .github/workflows/changeset-check.yml.


Split from #216. Draft.

@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c1a99e8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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