JavaScript Object.defineProperty for a function: create mock object instances in Jest or AVA
This post goes through how to use Object.defineProperty to mock how constructors create methods, ie....
Tags: javascript, testing, jest, webdev