-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
🙏 so much for pulling all of this together for testing API wrapper packages -- this is a godsend.
I randomly came across arguments against mocking (or rather, there's tradeoffs involved) and some of them struck a chord:
- https://medium.com/javascript-scene/mocking-is-a-code-smell-944a70c90a6a
- https://www.solutionsiq.com/resource/blog-post/to-mock-or-not-to-mock-is-that-even-a-question/
My summary would be:
- there's a cost in complexity to mocking
- some pkgs need more, other need less (none) mocking, roughly depending on how central I/O is to test coverage.
- the need for mocking can mask a lack of uncoupling in the overall design.
I'd be happy to write this up (worded very carefully) in a 2-3 paragraphs and add a PR if you're interested in featuring this angle at all.
Metadata
Metadata
Assignees
Labels
No labels