Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
spences10 avatar

Svelte Testing

  • 8 installs
  • 111 repo stars
  • Updated August 5, 2026
  • spences10/sveltest

Helps with testing & qa tasks.

About

svelte-testing is a Claude Code skill for testing & qa. It helps solo builders move faster with AI-assisted development.

  • svelte-testing
  • Testing & QA
  • AI-coding skill

Svelte Testing by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #1,571 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/sveltest --skill svelte-testing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars111
Last updatedAugust 5, 2026
Repositoryspences10/sveltest

What it does

Helps with testing & qa tasks.

Files

SKILL.mdMarkdownGitHub ↗

Svelte Testing

Quick Start

// Client-side component test (.svelte.test.ts)
import { render } from 'vitest-browser-svelte';
import { expect } from 'vitest';
import Button from './button.svelte';

test('button click increments counter', async () => {
	const { page } = render(Button);
	const button = page.getByRole('button', { name: /click me/i });

	await button.click();
	await expect.element(button).toHaveTextContent('Clicked: 1');
});

Core Principles

  • Always use locators: page.getBy*() methods, never containers
  • Multiple elements: Use .first(), .nth(), .last() to avoid

strict mode violations

  • Use untrack(): When accessing $derived values in tests
  • Real API objects: Test with FormData/Request, minimal mocking

Reference Files

  • core-principles |

foundation-first | client-examples

  • server-ssr-examples |

critical-patterns

  • client-server-alignment |

troubleshooting

Notes

  • Never click SvelteKit form submit buttons - Always use

await expect.element()

  • Test files: .svelte.test.ts (client), .ssr.test.ts (SSR),

server.test.ts (API)

<!-- PROGRESSIVE DISCLOSURE GUIDELINES:

  • Keep this file ~50 lines total (max ~150 lines)
  • Use 1-2 code blocks only (recommend 1)
  • Keep description <200 chars for Level 1 efficiency
  • Move detailed docs to references/ for Level 3 loading
  • This is Level 2 - quick reference ONLY, not a manual

-->

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.