Skip to content

docs(ct): add component testing pitfalls guidance - #40064

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
ayushozha:fix-31361
Apr 8, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
ayushozha:fix-31361

Conversation

@ayushozha

Copy link
Copy Markdown
Contributor

Summary

  • add a CT-specific best-practices and pitfalls section to the JS component testing docs
  • document three architecture-specific sharp edges: mounting per test, Node/browser mocking boundaries, and shared browser state between tests
  • align the content with the CT-focused scope discussed in the issue thread

Fixes #31361

Validation

  • node utils/doclint/linting-code-snippets/cli.js --js-only
  • npm run flint is blocked locally in npm run doc because WebKit exits immediately on this Windows host (libsharpyuv.dll / Playwright.exe startup issue) even after npx playwright install

cc Dmitry Gozman (@dgozman)

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 142ec84 into microsoft:main Apr 8, 2026
4 checks passed
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.

[Docs]: Component testing "best practices" or "pitfalls"

2 participants