.ai/principles/baselines/testing-frontend-testing-hierarchy.md
Prerequisite: Read
.ai/principles/distilled/testing-jest.mdfirst — it is the authoritative reference for how to write every test type covered here (unit, MSW integration, Capybara, fixtures).
This baseline answers only one question: which kind of test to write.
Use this decision order. Stop at the first match.
spec/frontend/ using Jest.spec/frontend/msw_integration/.spec/features/.qa/qa/specs/.See .ai/principles/distilled/testing-jest.md for the full how-to on all three
layers: unit/component tests, MSW integration tests, and Capybara feature
tests.
For MSW-specific additions not covered in testing-jest.md (run command, handler
registration pattern, GraphQL request counting), see
.ai/principles/distilled/testing-msw.md.