Home / Market / svelte test

svelte test

No skill description provided

claude-command★ 348000 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

/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:

  1. Analyze the Target:
  1. Test Creation Strategy:
  1. 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
     });
   });
  1. Coverage Areas:
  1. Test Types to Generate:

Example Usage

User: "Create tests for my UserProfile component that has edit mode"

Assistant will: