#mocking

[ follow ]
Vue
fromInfoQ
2 months ago

Nuxt Test Utils v4: Vitest v4 Requirement, Mocking Overhaul and Stricter Environment Setup

Nuxt Test Utils v4.0.0 introduces significant changes, including a new test environment setup and improved mock handling.
Python
fromRealpython
3 months ago

Improving Your Tests With the Python Mock Object Library - Real Python

unittest.mock enables creation, inspection, configuration, and substitution of mock objects to simplify testing of complex logic and unpredictable dependencies.
Python
fromNedbatchelder
6 months ago

Why your mock breaks later

Patch mocks where the object is used, not where it's defined, to avoid unintended, global effects on other libraries and test infrastructure.
[ Load more ]