Testing in TypeScript: For-Loops, Spies & Array.entries()

preview_player
Показать описание
Learn how to effectively use arrays for test inputs and expected outcomes. You'll learn how to avoid non-null assertions, making arrays immutable, and verify the number of loop iterations with a spy function.

00:00 Avoiding non-null assertions
04:46 Creating Spies to count loops

#typescript #javascript #vitest
Рекомендации по теме