There is currently a problem with stubs being left in place when tests fail before reaching the unstub command. There is already an issue open for stubs to support cleanup jasonkarns/bats-mock#3 however it would be worth investigating if any cleanup could be done in a helper function.
There is currently a problem with stubs being left in place when tests fail before reaching the unstub command. There is already an issue open for stubs to support cleanup jasonkarns/bats-mock#3 however it would be worth investigating if any cleanup could be done in a helper function.