Skip to content

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

Draft
Pavel Feldman (pavelfeldman) with Copilot wants to merge 2 commits into
mainfrom
copilot/add-arbitrary-annotations-to-test-steps
Draft

feat(test): add annotations to TestStepInfo#42388
Pavel Feldman (pavelfeldman) with Copilot wants to merge 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
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

2 participants