rstest

Community

Streamlined unit tests for Preact with rstest.

AuthorHyperxq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides consistent patterns and conventions for writing unit tests in Preact projects using rstest, reducing boilerplate and improving test reliability.

Core Features & Use Cases

  • Enforces using @rstest/core instead of vitest or jest for tests.
  • Promotes using @testing-library/preact and ensures the Preact JSX runtime is used.
  • Offers ready-to-use test patterns for component tests, setup, mocking, and async testing.
  • Guides configuration for rstest.config.ts and setup files to ensure clean test environments.

Quick Start

Run the test suite with bun run test to verify your Preact components using rstest.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rstest
Download link: https://github.com/Hyperxq/modular-frontend-architecture/archive/main.zip#rstest

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.