publish date
Jun 8, 2022
duration
26
min
Difficulty
Case details
For many Node.js developers, mocking is a big part of unit testing. This enables testing of smaller portions of logic with minimal overhead in a predictable situation. This talk will discuss different strategies for mocking in unit tests and include examples from popular mocking libraries like `proxyquire` and `nock`. It will also talk about common problems and mishaps like over-mocking or alternatively, not mocking enough, when values that change over time.
Share case: