Skip to content

Commit

Permalink
docs(best-practices): Separate AAA with empty line (#18098)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Oct 3, 2022
1 parent 74d8a63 commit 74ddbe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/development/best-practices.md
Expand Up @@ -233,6 +233,7 @@ Use `UTC` to be time zone independent.

## Unit testing

- Separate _Arrange_, _Act_ and _Assert_ phases with empty line
- Use `it.each` rather than `test.each`
- Prefer [Tagged Template Literal](https://jestjs.io/docs/api#2-testeachtablename-fn-timeout) style for `it.each`, Prettier will help with formatting
- See [Example](https://github.com/renovatebot/renovate/blob/768e178419437a98f5ce4996bafd23f169e530b4/lib/modules/platform/util.spec.ts#L8-L18)
Expand Down

0 comments on commit 74ddbe3

Please sign in to comment.