Skip to content

Instantly share code, notes, and snippets.

@vhoyer
Created February 5, 2020 19:16
Show Gist options
  • Save vhoyer/d8836fde4fbe68eb3fc85b8d56139cd7 to your computer and use it in GitHub Desktop.
Save vhoyer/d8836fde4fbe68eb3fc85b8d56139cd7 to your computer and use it in GitHub Desktop.

Contribution style guide

When Testing

  • describe calls inside other describe, should start with "when ..."
  • always use it, never use test commands to declare a test
  • it descriptions should always start with either an action or a "has"/"is"
  • it descriptions should be grammatically correct
  • test files should be placed next to the test subject file, that is, if a file is named ./index.ts, its test file should be placed in the same folder and named ./index.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment