You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: integrate Sveltest testing patterns into MCP
- Add new get-sveltest-patterns tool for vitest-browser-svelte - Include 6 Sveltest documentation sections with use cases - Update svelte-task prompt with testing tool instructions - Support pattern types: setup, component-testing, form-testing, locators, runes-testing, mocking, troubleshooting, best-practices - Add optional component_type parameter for specific examples Closes#103
Copy file name to clipboardExpand all lines: packages/mcp-server/src/mcp/handlers/prompts/svelte-task.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ ${available_docs}
15
15
16
16
</available-docs>
17
17
18
+
If you need testing patterns for Svelte components using vitest-browser-svelte (real browser testing), you can invoke the \`get-sveltest-patterns\` tool with pattern types like "setup", "component-testing", "form-testing", "runes-testing", "locators", "mocking", "troubleshooting", or "best-practices". This provides modern testing patterns for Svelte 5 applications.
19
+
18
20
Every time you write a Svelte component or a Svelte module you MUST invoke the \`svelte-autofixer\` tool providing the code. The tool will return a list of issues or suggestions. If there are any issues or suggestions you MUST fix them and call the tool again with the updated code. You MUST keep doing this until the tool returns no issues or suggestions. Only then you can return the code to the user.
0 commit comments