jasmine.github.io
jasmine.github.io copied to clipboard
Better docs for custom spy strategies
Right now all we have is https://jasmine.github.io/api/edge/jasmine.html#.addSpyStrategy which doesn't explain what a strategy is or what the factory should return. It would be good to have something that explains what custom spy strategies are useful for and how to write them.
Some context: https://groups.google.com/g/jasmine-js/c/kdzzuNxOFEU/m/1pALAoT63EsJ https://github.com/jasmine/jasmine/issues/279 https://github.com/jasmine/jasmine/issues/94 https://github.com/jasmine/jasmine/commit/4934e420b20bd4f6af3668ef06481c9dc7fecc33