References — fw-12 Testing Library, Browser Automation, and DevTools

Primary sources first. Read the real implementation after you have written yours, never before.

Testing Library

  • dom-testing-library source — read queries/ and role-helpers.js; the accessibility-tree-first query design is the whole idea
  • Guiding principles — "the more your tests resemble the way your software is used…"
  • user-event — why fireEvent is not enough. This matters more than it looks: fe-01 (sibling project) measured that synthetic dispatch does not interleave microtasks between listeners the way real input does, and fe-04 (sibling project) measured that setting .value never triggers tooShort. A synthetic harness has different semantics from production.
  • aria-query — the role/attribute data behind getByRole

Browser automation

DevTools itself


When a claim here proves stale, record it in PROGRESS.md section 7.