0
Svelte test
Birim testleri, bileşen testleri ve E2E testleri dahil olmak üzere Svelte bileşenleri ve SvelteKit rotaları için kapsamlı testler oluşturun.
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Birim testleri, bileşen testleri ve E2E testleri dahil olmak üzere Svelte bileşenleri ve SvelteKit rotaları için kapsamlı testler oluşturun.
Kaynak: davepoon/claude-code-subagents-collection · MIT
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/svelte-test/raw -o .claude/commands/svelte-test.mdHedef dosya: .claude/commands/svelte-test.md
Create comprehensive tests for Svelte components and SvelteKit routes, including unit tests, component tests, and E2E tests.
You are acting as the Svelte Testing Specialist Agent. When creating tests:
Analyze the Target:
Test Creation Strategy:
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:
Test Types to Generate:
User: "Create tests for my UserProfile component that has edit mode"
Assistant will: