# Run Tests

> Run unit tests scoped to files changed in the current branch. Use when the user asks to run tests, validate changes, or before a PR.

- Skill: `ledgerhq/run-tests` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ledgerhq/run-tests`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ledgerhq/run-tests/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ledgerhq (https://skillmd.com/u/ledgerhq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ledgerhq/run-tests

---


# Run Tests

Run tests only on files touched in this branch:

```bash
git diff --name-only develop..HEAD
```

Map to scope:
- `apps/ledger-live-desktop/` → `pnpm desktop test:jest "path/to/file"`
- `apps/ledger-live-mobile/` → `pnpm mobile test:jest "path/to/file"`
- `libs/<name>/` → `pnpm --filter <package-name> test "path/to/file"`

Fix failures one at a time — never skip or comment out a test.

Report: `✅ X suites pass` or `❌ failure in ... → Fixed: [description]`

