testdouble.js is a library for replacing real things for fake things in your unit tests, most often to facilitate test-driven development. For more reading on what a test double is and the various types, see this wiki page.
Before opening a question, be sure to peruse past issues and docs on the repo, as many people go there first to ask questions.