Описание тега stubs
A stub is a small piece of code that takes the place of another component during testing.
A stub is a small piece of code that takes the place of another component during testing. The benefit of using a stub is that it returns consistent results, making the test easier to write. And you can run tests even if the other components are not working yet.