Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

JavaScript Testing Fundamentals

What are stubs?

In this lesson, we're learning what stubs are when it comes to JavaScript testing.

Stubs are similar to mocks, but they only replace small parts of your code compared to Mocks who replace the entire dependency.