Skip to content
Snippets Groups Projects
Unverified Commit 5f83529e authored by Gabriel-Ladzaretti's avatar Gabriel-Ladzaretti Committed by GitHub
Browse files

docs: best practices add cast bullet under unit testing (#16756)

docs: best prac add cast bullet under unit testing
parent 6246a61b
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,8 @@ Use `UTC` to be time zone independent. ...@@ -143,6 +143,8 @@ Use `UTC` to be time zone independent.
- huge strings like the Renovate PR body text - huge strings like the Renovate PR body text
- huge complex objects where you only need to test parts - 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 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 ### Fixtures
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment