TypedDevs / bashunit

A simple testing library for bash scripts. Test your bash scripts in the fastest and simplest way, discover the most modern bash testing library.
https://bashunit.typeddevs.com
MIT License
270 stars 21 forks source link

unmock all test doubles after each test #235

Closed Chemaclass closed 1 month ago

Chemaclass commented 6 months ago

📚 Description

Currently, you can mock a particular function with custom logic, but there is no way to rollback the mock for other tests. The goal is to be able to rollback the mocked behaviour to the original one - and this should happen automatically after each test case.

🔖 Changes

✅ To-do list