constructor(options) {
        this.byRunableId_ = {};
        this.getCurrentRunableId_ = options.getCurrentRunableId;
        this.globalErrors_ = options.globalErrors;

        this.spyFactory = new j$.SpyFactory(
          () => {
            if (this.getCurrentRunableId_()) {
              return this.customSpyStrategies();
            } else {
              return {};
            }
          },
          () => this.defaultSpyStrategy(),
          () => this.makeMatchersUtil(),
        );

        this.spyRegistry = new j$.SpyRegistry({
          currentSpies: () => this.spies(),
          createSpy: (name, originalFn) => this.spyFactory.createSpy(name, originalFn),
        });
      }
Set the default spy strategy for the current scope of specs.

_Note:_ This is only callable from within a {@link beforeEach}, {@link it}, or {@link beforeAll}.
@name jasmine.setDefaultSpyStrategy
@function
@param {Function} defaultStrategyFn - a function that assigns a strategy
@example
beforeEach(function() {
  jasmine.setDefaultSpyStrategy(and => and.returnValue(true));
});