testing-clickup-cli
Installation
SKILL.md
Test Suite Overview
| Suite | Command | Files | What it tests |
|---|---|---|---|
| Unit | npm test |
tests/unit/**/*.test.ts |
All commands, API client, formatters, config. Mocks ClickUpClient. |
| E2E | npm run test:e2e |
tests/e2e/**/*.e2e.ts |
Real API calls against a live ClickUp workspace. |
Unit tests run in CI. E2E tests require CLICKUP_API_TOKEN in .env.test and are not part of CI.
Running Tests
npm test # all unit tests
npm test -- tests/unit/commands/ # just command tests
npm test -- -t "sprint" # filter by test name
npm run test:e2e # e2e tests (needs .env.test)
The unit test global setup runs npm run build before tests start.