Zum Inhalt springen
Kitbay
Einreichen

write-tests

MITAktualisiert am 11. Nov. 2026332GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

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