clerk-testing
clerk testing
Claude Code
What it does
- clerkSetup() initializes test environment
- setupClerkTestingToken() bypasses bot detection
- storageState persists auth between tests for speed
- Use setupClerkTestingToken() before navigating to auth pages
- Use test API keys: pktestxxx, sktestxxx
- Save auth state with storageState for faster tests
- Use page.waitForSelector('[data-clerk-component]') for Clerk UI
Requirements & configuration
- Test auth = isolated session state. Each test needs fresh auth context.
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
clerk-testing FAQ
What does the clerk-testing skill do?
E2E testing for Clerk apps. Use with Playwright or Cypress for auth flow tests. clerkSetup() initializes test environment setupClerkTestingToken() bypasses bot detection
What does clerk-testing require?
Test auth = isolated session state. Each test needs fresh auth context.
How do I install clerk-testing?
Run: npx -y skills add https://github.com/clerk/skills --skill clerk-testing --agent claude-code — the source lives at github.com/clerk/skills.
Maintain clerk-testing?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/clerk-skills-clerk-testing?ref=badge) npx agentictools info skills/clerk-skills-clerk-testing The second line is the CLI lookup for this page — handy in READMEs and docs.