sfnext-testing
Write and run tests for a Storefront Next project: Vitest + React Testing Library unit tests, route loader/action tests (createLoaderArgs, createTestContext), Storybook stories with snapshot, interaction (play) and a11y runs, and a pointer to the CodeceptJS/Playwright e2e suite. Use for "write a test for this component/loader", "add a story", pnpm test, pnpm storybook:test --type=snapshot|interaction|a11y, coverage thresholds, routeLoaderData / scapiMock / mockRoutes story parameters, MSW mocking, fixtures in @/components/__mocks__, failing snapshot updates, or pnpm e2e. Do not use for lint, typecheck, format, bundle-size or Lighthouse gates (use storefront-next:sfnext-quality-gates), accessibility rules and fixes (use storefront-next:sfnext-accessibility), or translations (use storefront-next:sfnext-i18n).
Pinned to revision fe78868e0e70, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/sfnext-testing/SKILL.md
- skills/sfnext-testing/evals/trigger-evals.json
- skills/sfnext-testing/references/E2E.md
- skills/sfnext-testing/references/STORYBOOK-PATTERNS.md
- skills/sfnext-testing/references/UNIT-AND-ROUTE-TESTS.md
Every link opens the file at its source, pinned to the revision this page describes.