Zum Inhalt springen
Kitbay
Skill

writing-tests

NOASSERTIONAktualisiert am 11. Nov. 202672.390GitHub-Sterne

A contributor skill in the Remotion repository for writing, updating and reviewing tests there, adding new tests only when the user asks for them.

Was der Skill vermittelt

A contributor skill in the Remotion repository for writing, updating and reviewing tests there, adding new tests only when the user asks for them. It points tests at the widest stable boundary that still gives useful confidence, such as a Studio Playwright workflow, a CLI run or a rendered frame, prefers assertions about outcomes over implementation details and whole workflows over many small pieces, and keeps focused unit tests for complex logic. It warns against mocking internal modules and asks for a fail-then-pass check on bug fixes. It names Remotion's own packages and credits outside essays on testing.

Funktionen

  • Choose the test boundary for a change
  • Write outcome-based assertions
  • Avoid mocking internal modules
  • Check bug fixes with a fail-then-pass run