Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
TS4 is the Netsnek e.U. TypeScript testing framework. It combines unit testing, snapshot testing, coverage reporting, and mutation testing under a single CLI tool.
Combining unit, snapshot, coverage, and mutation testing in one CLI eliminates the need to configure and coordinate multiple separate testing tools.
When to use it
- Running a full TypeScript test suite before committing
- Generating HTML and lcov coverage reports for a PR review
- Checking test pass/fail status without re-running the suite
- Validating UI component output with snapshot comparisons
- Using mutation testing to find gaps in test coverage
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: run tests and get a coverage report for my TypeScript project
- 1Runs ./scripts/test-runner.sh --run to execute the full test suite
- 2Checks output for any failing tests
- 3Runs ./scripts/test-runner.sh --coverage to generate the coverage report
- 4Reports pass/fail counts and coverage metrics to the user
Full test results with pass/fail summary and an HTML + lcov coverage report