Skip to content

Commit

Permalink
docs(best practices): refactor code or tests, not both at once (#25237)
Browse files Browse the repository at this point in the history
  • Loading branch information
HonkingGoose committed Oct 17, 2023
1 parent b21827d commit afa289f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/development/best-practices.md
Expand Up @@ -146,6 +146,12 @@ function foo(str: string): boolean {
}
```

### Refactor one thing at a time

Refactor the code _or_ refactor the tests.

Avoid refactoring the code and tests at the same time, this can mask regression errors.

## Logging

For `WARN`, `ERROR` and `FATAL log messages use logger metadata.
Expand Down

0 comments on commit afa289f

Please sign in to comment.