Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 469 Bytes

Sinon.md

File metadata and controls

18 lines (13 loc) · 469 Bytes

Sinon

Sinon is supported as a spy library. It will be auto-detected if sinon.spy is globally available.

Otherwise, pass require("sinon") as your spyLibrary request:

require("console-fail-test").cft({
	spyLibrary: require("sinon"),
});

Spies

Global console methods will be replaced by sinon.spy() spies. You can inspect them at runtime as usual per Sinon spies. See Sinon's spy functions docs.