Skip to content
Kitbay
Submit

write-tests

MITUpdated on Nov 11, 2026332GitHub stars

A contributor skill in the Todoist CLI repository on writing tests for that codebase.

What the skill teaches

A contributor skill in the Todoist CLI repository on writing tests for that codebase. It explains where tests live (next to the code, one file per command group or subcommand, plus an integration test that runs the built CLI), how command tests mock the Todoist SDK client and capture console output, which shared test helpers and fixtures to use, and a quality bar kept in a bundled rules file: a test only counts if it can fail, asserts outcomes, mocks only real boundaries and was seen failing once. It applies only to the todoist-cli repository.

Capabilities

  • Place tests at the right layer in todoist-cli
  • Mock the Todoist SDK client in command tests
  • Apply the repository's test quality rules