filmov
tv
Two hot 🔥 testing tips for JavaScript / TypeScript seniors

Показать описание
Two hints about unit testing that will make you a better developer!
With the first one, you'll learn how to use JavaScript's built-in function name storage mechanism to better describe your tests and make your code more resistant to future changes.
Have you ever thought about the fact that your types may also contain logic that would be worth testing? The second tip shown will show you how to practically test a logic dependency between two TS types and ensure that someone doesn't mistakenly overturn it in the future.
I recommend brilliant Mike's North TS course where I got the TS testing idea from:
#typescript #javascript #testing #vitest #senior #code
With the first one, you'll learn how to use JavaScript's built-in function name storage mechanism to better describe your tests and make your code more resistant to future changes.
Have you ever thought about the fact that your types may also contain logic that would be worth testing? The second tip shown will show you how to practically test a logic dependency between two TS types and ensure that someone doesn't mistakenly overturn it in the future.
I recommend brilliant Mike's North TS course where I got the TS testing idea from:
#typescript #javascript #testing #vitest #senior #code