How to hide JavaScript’s console.log output in Jest tests

Learn how to suppress the output of undesired console.log() calls in your Jest tests.

TypeScript: make selected properties optional with Partial & Omit

When you use the utility Partial on a type, it will make all the type properties optional. Let's see how we can compose this utility with another one, Omit, to make optional only certain properties of this type. We'll finally create a utility type using TypeScript generics to apply this on any type we want.… Continue reading TypeScript: make selected properties optional with Partial & Omit