Use SinonJS to stub and spy on the same function? June 6, 2023 by Tarik The stub supports all the methods of a spy. Just don’t create the spy.