bymastra-ai· 42 skills
REQUIRED and PRIMARY testing approach for packages/playground and packages/playground-ui. Triggers on: adding or modifying hooks, pages, route components, data-fetching code, React Query interactions, or any test work in these packages. Generates Vitest tests that drive the real @mastra/client-js + React Query stack through MSW handlers and typed fixtures derived from @mastra/client-js response types. This is the #1 way to test the playground packages — ABOVE Playwright E2E. Use Playwright only for cross-page user journeys that MSW cannot model.
$npx -y skills add mastra-ai/mastra --skill playground-msw-testsInstalls into the current project.
Run `npx skills use "https://github.com/mastra-ai/mastra" --skill "mastra-ai/mastra/playground-msw-tests"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mastra-ai/mastra" that are relevant to the current task. Run `npx skills add "https://github.com/mastra-ai/mastra"` and select the relevant skills, then follow their instructions.