Skip to content

feat(test): add annotations to TestStepInfo - #42388

Merged
Pavel Feldman (pavelfeldman) merged 2 commits into
mainfrom
copilot/add-arbitrary-annotations-to-test-steps
Aug 27, 2026
Merged

feat(test): add annotations to TestStepInfo#42388
Pavel Feldman (pavelfeldman) merged 2 commits into
mainfrom
copilot/add-arbitrary-annotations-to-test-steps

Conversation

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

TestStepInfo lacked a public TypeScript declaration for annotations, despite supporting them at runtime and in reporters.

Changes

  • Expose mutable TestStepInfo.annotations.
  • Document annotation type, description, and source location.
  • Cover TypeScript usage and reporter propagation.
await test.step('validate result', async stepInfo => {
  stepInfo.annotations.push({
    type: 'expected-result',
    description: 'Step passes with no errors.',
  });
});

Co-authored-by: pavelfeldman <883973+pavelfeldman@users.noreply.github.com>
Copilot AI changed the title [WIP] Add arbitrary annotations to test steps feat(test): add annotations to TestStepInfo Aug 25, 2026
@pavelfeldman
Pavel Feldman (pavelfeldman) marked this pull request as ready for review August 27, 2026 17:30
@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit deda92d into main Aug 27, 2026
42 of 43 checks passed
@pavelfeldman
Pavel Feldman (pavelfeldman) deleted the copilot/add-arbitrary-annotations-to-test-steps branch August 27, 2026 18:31
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.

[Feature]: Add arbitrary annotations to test steps

3 participants