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

Master Vue.js with Vue School Premium

$25 / month

JavaScript Testing Fundamentals

Master Vue.js with Vue School Premium

$25 / month

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.