writing-dev-server-tests
OfficialGuide robust HMR/dev-server tests.
Authorzhcndoc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill guides developers in writing tests for hot-reloading (HMR) and dev-server behavior, ensuring reliability in development workflows.
Core Features & Use Cases
- Test harness utilities: Provides patterns and utilities (devTest, bake harness, Client) used to drive end-to-end dev-server tests.
- Coverage of dev-server aspects: Includes tests for bundling, CSS handling, plugins, React refresh, server components, and source maps.
- Use Case: When creating or modifying a dev server or its hot reload logic, use these tests to validate behavior before release.
Quick Start
Use the dev-server test harness to create a new test under test/bake and run it with your standard test runner to verify hot reload and bundling behaviors.
Dependency Matrix
Required Modules
None requiredComponents
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: writing-dev-server-tests Download link: https://github.com/zhcndoc/bun/archive/main.zip#writing-dev-server-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.