
rstest-best-practices
Set up, write, or review Rstest tests and configuration, including environments
by rstackjsFree
Description
rstest-best-practices is an agent skill for setting up, writing and reviewing tests with Rstest, a test runner for JavaScript and TypeScript projects. It applies to test setup, test writing, and the Rstest configuration itself, including environments, mocks, snapshots, coverage and CI. The workflow it sets out starts by inspecting the existing package manager, dependency policy, module mode, build configuration, test layout and framework conventions before any edit. It then adds the @rstest/core package, a package-local test script, and a config file whose extension matches the module mode of the package. The skill says to reuse existing build configuration only when that lowers maintenance cost, and treats an adapter as optional, with an independent config as the fallback when adapter integration is not compatible. It advises configuring test discovery, environments and setup files on purpose, and warns against enabling passWithNoTests unless an empty test set is an expected state. Verification means running rstest list to confirm discovery, then focused tests, the full suite, and the project's build or type-check command. The skill is published in the rstackjs agent-skills repository and installs with the skills CLI.…
Highlights
- Sets up @rstest/core, a test script and a matching config file
- Checks test discovery with rstest list before running tests
- Guidance on environments, setup files, mocks, snapshots and coverage
- Keeps existing build configuration where it stays compatible
Ratings & Reviews
No ratings yet
Be the first to rate rstest-best-practices.
People also visit

javascript-typescript-jest
Jest testing best practices for JavaScript and TypeScript projects

rust-testing
Rust testing patterns including unit tests, integration tests, async testing

frontend-testing
Writing or changing Vitest or React Testing Library tests under `web/` or
rstest-best-practices FAQ
What is rstest-best-practices?
An agent skill with rules for setting up, writing and reviewing Rstest tests and configuration.
Who is it for?
JavaScript and TypeScript developers who use Rstest and want an agent to follow its conventions.
How does it verify a setup?
It runs rstest list to confirm test discovery, then focused tests, the full suite, and the project's build or type-check command.
How do I install it?
Run npx skills add https://github.com/rstackjs/agent-skills --skill rstest-best-practices.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best rstest-best-practices alternatives?
Popular alternatives to rstest-best-practices include javascript-typescript-jest, rust-testing and agent-tester. See all rstest-best-practices alternatives














