# Testing Typescript

> Use when writing tests for TypeScript or JavaScript code in frameworks such as Jest, Vitest, Bun, etc.

- Skill: `landonschropp/testing-typescript` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add landonschropp/testing-typescript`
- Raw SKILL.md: https://api.skillmd.com/api/skills/landonschropp/testing-typescript/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: LandonSchropp (https://skillmd.com/u/landonschropp)
- Updated: 2026-08-19
- Page: https://skillmd.com/skills/landonschropp/testing-typescript

---


Read:

- [Better Tests](references/better-tests.md)
- [Personal Preferences](references/personal-preferences.md)

## Framework-Specific Conventions

After reading the references above, invoke the skill matching the project's test framework.

| How to detect                                            | Skill to invoke             |
| -------------------------------------------------------- | --------------------------- |
| Imports from `bun:test`, or a `bunfig.toml` / `bun.lock` | `ls-typescript:testing-bun` |

## Renderer-Specific Conventions

These apply on top of the framework skill above, based on what you're testing.

| What you're testing            | Skill to invoke               |
| ------------------------------ | ----------------------------- |
| A React hook                   | `ls-typescript:testing-react` |
| An Ink (terminal UI) component | `ls-typescript:testing-ink`   |

