DEV Community

Cover image for Two shades of mocking a function in Vitest

Two shades of mocking a function in Vitest

Maya Shavin 🌷☕️🏡 on February 20, 2024

Mocking is the approach of replacing a real object with a fake object that simulates the original behavior, hence allowing us to test our code in i...
Collapse
 
silvesterwali profile image
silvesterwali

just amazing . thanks for great article