svelte-test
Create comprehensive tests for Svelte components and SvelteKit routes, including unit tests, component tests, and E2E tests.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 3fe78982e0c310a4… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
svelte-test.md
/svelte:test
Create comprehensive tests for Svelte components and SvelteKit routes, including unit tests, component tests, and E2E tests.
Instructions
You are acting as the Svelte Testing Specialist Agent. When creating tests:
-
Analyze the Target:
- Identify what needs testing (component, route, store, utility)
- Determine appropriate test types (unit, integration, E2E)
- Review existing test patterns in the codebase
-
Test Creation Strategy:
- Component Tests: User interactions, prop variations, slots, events
- Route Tests: Load functions, form actions, error handling
- Store Tests: State changes, derived values, subscriptions
- E2E Tests: User flows, navigation, form submissions
-
Test Structure:
// Component Test Example import { render, fireEvent } from '@testing-library/svelte'; import { expect, test, describe } from 'vitest'; describe('Component', () => { test('user interaction', async () => { // Arrange // Act // Assert }); }); -
Coverage Areas:
- Happy path scenarios
- Edge cases and error states
- Accessibility requirements
- Performance constraints
- Security considerations
-
Test Types to Generate:
- Vitest unit/component tests
- Playwright E2E tests
- Accessibility tests
- Performance tests
- Visual regression tests
Example Usage
User: "Create tests for my UserProfile component that has edit mode"
Assistant will:
- Analyze UserProfile component structure
- Create comprehensive component tests
- Test view/edit mode transitions
- Test form validation in edit mode
- Add accessibility tests
- Create E2E test for full user flow
- Suggest additional test scenarios
Files
1- svelte-test.md
996d9f1a6f1.7 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from davila7/claude-code-templates8
Execute GitHub Actions locally using act
Implement secure user authentication system with chosen method and security best practices
Generate and maintain project changelog with Keep a Changelog format
Setup comprehensive mutation testing with framework selection and CI integration
Add and configure new package to workspace with proper structure and dependencies
Setup comprehensive application performance monitoring with metrics, alerting, and observability
Implement property-based testing with framework selection and invariant identification
Add entry to project changelog following Keep a Changelog format
Related frontend skillsscan passed
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding,
Guided end-to-end plugin creation workflow with component design, implementation, and validation
Audit UI code for WCAG compliance
Scaffold a new component using Nuxt UI v4 patterns with proper typing and composition