rstest
Rstest
Rstest is a testing framework powered by Rspack. It provides Jest-compatible APIs with native TypeScript and ESM support, and integrates directly into the Rstack toolchain (Rspack, Rsbuild, Rslib, Rspress).
Key things that distinguish Rstest from Jest/Vitest:
- Build tooling is Rspack, not Babel or Vite — it reuses your existing Rsbuild/Rspack config
- Two separate utility namespaces:
rsfor module-level operations (mocking modules), andrstestfor runtime utilities (fn, spyOn, timers). Both are imported from@rstest/core rs.mock()without a factory is NOT auto-mock — it looks for__mocks__/directory only. For auto-mocking, pass{ mock: true }. This is the biggest gotcha when migrating from Vitest- Mock factories cannot be async — use
import ... with { rstest: 'importActual' }for partial mocks instead - No
--runflag —rstestalready runs once and exits. Userstest --watchorrstest watchfor watch mode - Node.js ≥ 20.19.0 required
Setup
Install
More from weaaare/a11y-agents-kit
figma-a11y-audit
>
9find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
2skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
2aria-patterns
>
2typescript-expert
TypeScript and JavaScript expert with deep knowledge of type-level programming, performance optimization, monorepo management, migration strategies, and modern tooling.
2