This skill documents how to write and structure tests using hTest, a declarative testing framework supporting JS-first (Node/CI-friendly) and HTML-first (browser-based) modes. It explains core patterns (exported test objects with run/arg/expect), comparison strategies, lifecycle hooks, parallel execution semantics, and best practices for building maintainable suites.
Use this skill when a project uses hTest (e.g., listed in devDependencies) or when a developer asks for help writing tests as nested object literals or reftest tables. It applies to unit-testing logic in CI, DOM/component tests in a browser, and migrating examples to hTest patterns.
check object shorthand, lifecycle hooks, data-driven generation, and running commands (npx htest). Clear guidance on common mistakes and how to structure tests for reliability.Useful for developer-assistant agents or CI automation agents that suggest, generate, or validate tests. Compatible with agents that can read/write repository files and run test commands (e.g., GitHub Copilot-like assistants, OpenClaw QA tooling).
This skill has not been reviewed by our automated audit pipeline yet.