Repository navigation
v0.19.0
The testing surface gets wiring mechanics and honest bars — same audit as v0.18.0.
Added
testing.md: read-the-harness-first; MSW lifecycle (onUnhandledRequest: 'error',resetHandlers()per test); test-data builders over copy-pasted fixtures; Pinia wiring (setActivePinia/createTestingPinia); router wiring (RouterLinkStub/createMemoryHistory+isReady); settle-before-asserting (awaitinteractions,nextTick,flushPromises); web-first e2e assertions; per-flow@axe-core/playwrightscan; a characterization-tests definition under Bar (with the golden-master carve-out). Frontmatter now also scopes__tests__/dirs and tsx/jsx test files./add-tests: step 1 "Find the gap" (diff-driven or--coverage) and a closing "Run & report" step matchingtest-engineer's report./verify: conditionaltest:e2erun when e2e is touched; leftover.only/.skipjoins the scope-creep check (a local.onlygreens the gate on one test).
Changed
testing.mdBar: "happy path + one edge/error/empty branch" now lives in the owning rule; the coverage ratchet names its mechanism (Vitestcoverage.thresholds+autoUpdate) instead of being aspiration; flake check is--repeat-each=3 --retries=0(retries mask flakes; synced in/add-tests); visual regression covers Vitest browser mode'stoMatchScreenshot(), not just Storybook; the snapshot ban gains its one legitimate carve-out./debug-frontendsteps 5–6: the failing test that confirms the hypothesis IS the regression test — no fix-first with a retrofitted test.workflow.mdstep 3 tells the truth about the gate board: auditors are read-only,test-engineeralone writes./prunee2e trim also strips the newtest:e2ebullet from/verify.