Claude Market
Menu
SkillsMCPPluginsSubmit MCPSkillPluginMCPMCP, plugin, or skillAdvertise
Claude Market
SkillsMCPPluginsSubmit MCPSkillPluginMCPMCP, plugin, or skillAdvertise

Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you →
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free →
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you →
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free →
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off
Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed
Launch on Hostinger →
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off
Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw
Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.
Start building free →
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams
Get it set up for you →
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit
Try DataForSEO free →
Reach 47,000+ AI builders
Advertise here →
Skills/rstackjs/agent-skills/rstest-best-practices
rstest-best-practices logo

rstest-best-practices

rstackjs/agent-skills
624 installs80 stars
Run it on Hostinger →up to 70% off + an extra 10% with code ZACAARON10Free API →

Installation

npx skills add https://github.com/rstackjs/agent-skills --skill rstest-best-practices

Summary

Rstest best practices for config, CLI workflow, test writing, mocking, snapshot testing, DOM testing, coverage, multi-project setup, CI integration, performance and debugging. Use when writing, reviewing, or troubleshooting Rstest test projects.

SKILL.md

Rstest Best Practices

Apply these rules when writing or reviewing Rstest test projects.

Configuration

  • Use rstest.config.ts and defineConfig from @rstest/core
  • Prefer explicit imports import { test, expect, describe } from '@rstest/core' over globals: true
  • For Rsbuild projects, use @rstest/adapter-rsbuild with extends: withRsbuildConfig() to reuse build config
  • For Rslib projects, use @rstest/adapter-rslib with extends: withRslibConfig() to reuse build config
  • Use setupFiles for shared test setup (e.g., custom matchers, cleanup hooks)
  • When using Rsbuild plugins (e.g., @rsbuild/plugin-react), add them via the plugins field
  • For deep-level or advanced build configuration needs, use tools.rspack or tools.bundlerChain

CLI

  • Use rstest or rstest run to run tests (run disables watch mode, suitable for CI)
  • Use rstest --watch or rstest watch for local development with file watching
  • Use rstest list to list all test files and test names
  • Use rstest -u to update snapshots
  • Use --reporter=verbose when debugging test failures for detailed output
  • Use --config (-c) to specify a custom config file path

Test writing

  • Import test APIs from @rstest/core: test, describe, expect, beforeEach, afterEach, etc.
  • Use test or it for test cases; use describe for grouping related tests
  • Use .only to focus on specific tests during development, but never commit .only to the codebase
  • Use .skip or .todo to mark incomplete or temporarily skipped tests
  • Prefer small, focused test cases that test a single behavior
  • For async error paths, prefer await expect(fn()).rejects.toThrow(ErrorClass) (or .rejects.toMatchObject({ ... })) over try/catch with expect.fail or .catch(e => e) patterns — the matcher form fails clearly if the promise unexpectedly resolves, keeps the assertion in one chain, and avoids forgetting to assert the throw at all
  • For async happy paths, use await expect(fn()).resolves.toEqual(...) for the same reason
  • Use includeSource for in-source testing of small utility functions (Rust-style import.meta.rstest)
  • For in-source tests, wrap test code in if (import.meta.rstest) { ... } and define import.meta.rstest as false in production build config

Test environment

  • Use testEnvironment: 'node' (default) for Node.js / server-side code
  • Use testEnvironment: 'jsdom' or testEnvironment: 'happy-dom' for DOM / browser API testing
  • Install jsdom or happy-dom as a dev dependency when using DOM environments
  • Prefer happy-dom for faster DOM testing; use jsdom when better browser API compatibility is needed
  • For real browser testing, use @rstest/browser with Playwright
  • Use inline project configs to run different test environments within one project (e.g., node and jsdom projects)

React / Vue testing

  • For React: use @rsbuild/plugin-react plugin and @testing-library/react for component testing
  • For Vue: use @rsbuild/plugin-vue plugin and @testing-library/vue for component testing
  • Create a rstest.setup.ts with expect.extend(jestDomMatchers) and afterEach(() => cleanup()) for Testing Library
  • Add the setup file to setupFiles in config
  • For SSR testing, use testEnvironment: 'node' and test with react-dom/server or framework-specific SSR APIs

Mocking

  • Use rs.mock('./module') to mock modules
  • Use rs.fn() to create mock functions
  • Use rs.spyOn(object, 'method') to spy on methods
  • Prefer clearMocks, resetMocks, or restoreMocks config options to automatically clean up mocks between tests
  • Use factory functions in rs.mock('./module', () => ({ ... })) to provide mock implementations

Snapshot testing

  • Use toMatchSnapshot() for general snapshot testing
  • Use toMatchInlineSnapshot() for small, readable inline snapshots
  • Use toMatchFileSnapshot() for large or structured outputs (e.g., HTML, generated code)
  • Keep snapshots concise — only include relevant data, avoid timestamps and session IDs
  • Use expect.addSnapshotSerializer() to mask paths or sensitive data in snapshots
  • Use path-serializer to normalize file paths across platforms
  • Review snapshot changes carefully in code review

Coverage

  • Enable coverage with --coverage CLI flag or coverage.enabled: true in config
  • Install @rstest/coverage-istanbul for the Istanbul coverage provider
  • Use coverage.include to specify source files for coverage (e.g., ['src/*/.{js,ts,tsx}'])
  • Use coverage.thresholds to enforce minimum coverage requirements
  • Use coverage.reporters to generate reports in different formats (e.g., text, lcov, html)

Multi-project testing

  • Use projects field in root config to define multiple test projects
  • For monorepos, use glob patterns like 'packages/*' to auto-discover sub-projects
  • Use defineProject helper in sub-project configs
  • Extract shared config and use mergeRstestConfig to compose project configs
  • Global options (reporters, pool, isolate, coverage, bail) must be set at the root level, not in projects

CI integration

  • Use rstest run (not rstest watch) in CI
  • Use --shard for parallel test execution across CI machines (e.g., --shard 1/3)
  • Use --reporter=blob with rstest merge-reports to combine sharded results
  • Use --reporter=junit with outputPath for CI report integration
  • The github-actions reporter is auto-enabled in GitHub Actions for inline error annotations
  • Use --bail to stop early on first failure when appropriate

Performance

  • Disable isolate (--no-isolate) when tests have no side effects for faster execution via module cache reuse
  • Use pool.maxWorkers to control parallelism based on available resources
  • Keep test build fast by avoiding unnecessary Rspack plugins in test config
  • Use test filtering (rstest <pattern> or -t <name>) to run only relevant tests during development
  • Leverage watch mode's incremental re-runs for fast local feedback

Debugging

  • Run with DEBUG=rstest to enable debug mode, which writes final configs and build outputs to disk
  • Read generated files in dist/.rstest-temp/.rsbuild/ to confirm final Rstest/Rsbuild/Rspack config
  • Use VS Code's JavaScript Debug Terminal to run rstest with breakpoints
  • Use --reporter=verbose for detailed per-test output
  • Use --printConsoleTrace to trace console calls to their source
  • Add VS Code launch config for debugging specific test files with @rstest/core/bin/rstest.js

Profiling

  • Use Rsdoctor with RSDOCTOR=true rstest run to analyze test build performance
  • Use samply for native profiling of both main and worker processes
  • Use Node.js --heap-prof for memory profiling

Toolchain integration

  • Use the official VS Code extension (rstack.rstest) for in-editor test running and debugging
  • For Rslib libraries, use @rstest/adapter-rslib for config reuse
  • For Rsbuild apps, use @rstest/adapter-rsbuild for config reuse
  • Use process.env.RSTEST to detect test environment and apply test-specific config

Documentation

  • For the latest Rstest docs, read https://rstest.rs/llms.txt

Score

0–100
63/ 100

Grade

C

Popularity15/30

624 installs — growing adoption.

Completeness27/30

Documented: full SKILL.md body, description, one-line install. Missing: category/license metadata.

Trust15/25

Community skill with a public GitHub source repository you can review.

Freshness6/15

No update timestamp is tracked for this skill in our catalog.

Scored automatically from popularity, completeness, trust, and freshness — computed only from data in our catalog, never fabricated.

Proud of your score? Add this badge to your README.

Paste a snippet into your GitHub README. The badge updates automatically and links back to this page.

Rstest Best Practices skill score badge previewScore badge

Markdown

[![Rstest Best Practices skill](https://www.claudemarket.ai/skills/rstackjs/agent-skills/rstest-best-practices/badges/score.svg)](https://www.claudemarket.ai/skills/rstackjs/agent-skills/rstest-best-practices)

HTML

<a href="https://www.claudemarket.ai/skills/rstackjs/agent-skills/rstest-best-practices"><img src="https://www.claudemarket.ai/skills/rstackjs/agent-skills/rstest-best-practices/badges/score.svg" alt="Rstest Best Practices skill"/></a>

Rstest Best Practices FAQ

How do I install the Rstest Best Practices skill?

Run “npx skills add https://github.com/rstackjs/agent-skills --skill rstest-best-practices” in your terminal. The skill is added to your agent's skills directory and picked up automatically on the next run — no restart or extra configuration needed.

What does the Rstest Best Practices skill do?

Rstest best practices for config, CLI workflow, test writing, mocking, snapshot testing, DOM testing, coverage, multi-project setup, CI integration, performance and debugging. Use when writing, reviewing, or troubleshooting Rstest test projects. The full SKILL.md on this page shows the exact instructions the skill gives your agent.

Is the Rstest Best Practices skill free?

Yes. Rstest Best Practices is a free, open-source skill published from rstackjs/agent-skills. As with any third-party skill, review the source repository before installing it into an agent with sensitive access.

Does Rstest Best Practices work with Claude Code and OpenClaw?

Yes. Skills use the portable SKILL.md format, so Rstest Best Practices works with Claude Code, OpenClaw, Codex, Hermes, and any other agent that reads SKILL.md skills.

Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you →
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free →
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger →
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free →
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you →
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free →
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here →
Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off
Launch on Hostinger →
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed
Launch on Hostinger →
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off
Try Firecrawl free →
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw
Deploy now →
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.
Start building free →
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams
Get it set up for you →
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit
Try DataForSEO free →
Reach 47,000+ AI builders
Advertise here →
View on GitHub

Recommended skills

Browse all →
find-skills logo

find-skills

vercel-labs/skills

2.8M installsInstall
frontend-design logo

frontend-design

anthropics/skills

731K installsInstall
grill-me logo

grill-me

mattpocock/skills

726K installsInstall
grill-with-docs logo

grill-with-docs

mattpocock/skills

616K installsInstall
agent-browser logo

agent-browser

vercel-labs/agent-browser

612K installsInstall
vercel-react-best-practices logo

vercel-react-best-practices

vercel-labs/agent-skills

598K installsInstall

Related guides

Hand-picked reading to help you choose, install, and use agent skills.

GuideBest Code Review SkillsGuideBest Testing Skills For AI AgentsGuideBest Documentation Skills For AI Agents

Skills by category

FrontendBackend & APIsTesting & QASecurityDevOps & CI/CDMCP & ToolingAutomationData & Analysis+20 more

MCP servers by category

AI & MLDeveloper ToolsVector & MemoryFiles & DocsDatabasesFinance & PaymentsBrowser & ScrapingCommunication+8 more

Marketplaces by category

developmentproductivitycommunicationdesignsecuritydatabaseworkflowcompliance+34 more

Claude Market

AI agent skills directory, marketplace, and workflow hub for OpenClaw, Hermes Agent, Claude Code, Codex, and MCP-powered operator stacks.

Independent project, not affiliated with Anthropic.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Plugins

More

  • Submit a Tool
  • Advertise
  • Free Tools
  • API
  • Shipping
  • Contact
  • Terms
  • Privacy

Know a company that should advertise here? Refer them and earn 10% — up to $300 per referral.

© 2026 Claude Market
Fazier badgeFeatured on Twelve ToolsFeatured on Wired BusinessRemote OpenClaw - Featured on AI Agents DirectoryListed on Turbo0Featured on Uneed