From 5f83529ec83fb4d53baeee5193ab3ef4813ca23c Mon Sep 17 00:00:00 2001
From: Gabriel-Ladzaretti
 <97394622+Gabriel-Ladzaretti@users.noreply.github.com>
Date: Mon, 25 Jul 2022 15:15:09 +0300
Subject: [PATCH] docs: best practices add cast bullet under unit testing
 (#16756)

docs: best prac add cast bullet under unit testing
---
 docs/development/best-practices.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/development/best-practices.md b/docs/development/best-practices.md
index e92fae7159..920df9c81f 100644
--- a/docs/development/best-practices.md
+++ b/docs/development/best-practices.md
@@ -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
 
-- 
GitLab