Skip to content

Commit

Permalink
docs: best practices add cast bullet under unit testing (#16756)
Browse files Browse the repository at this point in the history
docs: best prac add cast bullet under unit testing
  • Loading branch information
Gabriel-Ladzaretti committed Jul 25, 2022
1 parent 6246a61 commit 5f83529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/development/best-practices.md
Expand Up @@ -143,6 +143,8 @@ Use `UTC` to be time zone independent.
- huge strings like the Renovate PR body text
- huge complex objects where you only need to test parts
- Avoid exporting functions purely for the purpose of testing unless you really need to
- Avoid cast or prefer `x as T` instead of `<T>x` cast
- Use `partial<T>()` from `test/util` If only a partial object is required,

### Fixtures

Expand Down

0 comments on commit 5f83529

Please sign in to comment.