Skip to main content
subagent CX Codex

svelte-testing — Claude Code subagent for Svelte tests

The svelte-testing subagent helps test Svelte and SvelteKit apps, from component behavior to end-to-end flows. Use it when you need coverage for UI interactions or server-side functions.

no license ★ 1,357 updated 2026-03-01

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/svelte-testing.md
Open on GitHub

What svelte-testing does

The subagent handles unit, component, and end-to-end testing for Svelte and SvelteKit projects. Its testing toolkit includes Vitest and Playwright. It can work on component interactions and states, as well as SvelteKit load functions, form actions, and API routes.

Its guidance covers Vitest setup, component lifecycle helpers such as mount and unmount, reactive updates with flushSync(), and cleanup between tests. It also includes accessibility checks, such as keyboard navigation and ARIA attributes. Playwright E2E tests need a runnable app and their own setup, so treat them as a separate layer from unit tests.

What it helps with

  • check how a component responds to clicks and input
  • test a SvelteKit load function or form action
  • write a Playwright flow for a user journey
  • verify that reactive values update

Example prompts for the agent

  • Test Counter.svelte and add a case for clicking its button.
  • Write a test for the loader in +page.server.js.
  • Create a Playwright E2E test for the purchase flow.

How to install svelte-testing

Manually: put the files in place

.claude/agents/svelte-testing.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about svelte-testing

How do I install svelte-testing in Claude Code?

Add the subagent file at .claude/agents/svelte-testing.md.

What does svelte-testing do?

It helps test Svelte and SvelteKit apps with Vitest and Playwright, including components, server functions, and user flows.

Which test types does svelte-testing cover?

It covers unit, component, and E2E tests, along with SvelteKit load functions, form actions, and API routes.

Similar subagents

All subagents for Testing and QA →

From the same set112

The whole set →
react-pro react-pro — a React-focused subagent for building components, refactoring code, and tackling UI problems. It examines existing project patterns and includes testing in its workflow. CX Codex ★ 1,357repo stars Linear Todo Sync Linear Todo Sync pulls your open Linear tasks through the API and writes them as a markdown todo file in the project root. Useful when you want a quick view of assigned work. CX Codex +1 ★ 1,357repo stars reasoning-validator The reasoning-validator subagent for Claude Code checks reasoning chains with WFGY formulas and quantitative metrics, helping identify logical errors in assistant reasoning. CX Codex ★ 1,357repo stars strategic-analyst strategic-analyst simulates business and architecture scenarios, maps project constraints, and logs planned initiatives directly into Linear. CX Codex ★ 1,357repo stars logic-synthesizer logic-synthesizer splits a hard problem into several parallel solution paths, weighs each one and merges the strongest parts into a single answer. CX Codex ★ 1,357repo stars cognitive-debugger cognitive-debugger — a diagnostic subagent for Claude Code that investigates reasoning breakdowns, traces error propagation across logic chains, and applies WFGY recovery protocols. CX Codex ★ 1,357repo stars test-automator test-automator is a Claude Code subagent that plans automated tests and connects them to CI/CD. It activates for coverage work or when a project needs a testing setup from scratch. CX Codex ★ 1,357repo stars knowledge-mapper knowledge-mapper turns a subject into a map of concepts: nodes, typed links, clusters and routes between ideas. Handy when a topic is too big to keep in your head at once. CX Codex ★ 1,357repo stars

Project sponsors

Companies that keep this analytics open