Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
config.set(this.options);
return config;
}
private readonly provideOptions = () => {
return this.options;
}
public pluginResolver: sinon.SinonStubbedInstance;
public options: StrykerOptions;
public logger: sinon.SinonStubbedInstance;
public injector: Injector = rootInjector
.provideValue(commonTokens.getLogger, this.provideLogger)
.provideFactory(commonTokens.logger, this.provideLogger, Scope.Transient)
.provideFactory(commonTokens.options, this.provideOptions, Scope.Transient)
.provideFactory(commonTokens.config, this.provideConfig, Scope.Transient)
.provideFactory(commonTokens.pluginResolver, this.providePluginResolver, Scope.Transient);
public reset() {
this.options = factory.strykerOptions();
this.logger = factory.logger();
this.pluginResolver = {
resolve: sinon.stub(),
resolveAll: sinon.stub()
};
}
}
export const testInjector = new TestInjector();
testInjector.reset();
}
private readonly provideConfig = () => {
const config = new Config();
config.set(this.options);
return config;
}
private readonly provideOptions = () => {
return this.options;
}
public pluginResolver: sinon.SinonStubbedInstance;
public options: StrykerOptions;
public logger: sinon.SinonStubbedInstance;
public injector: Injector = rootInjector
.provideValue(commonTokens.getLogger, this.provideLogger)
.provideFactory(commonTokens.logger, this.provideLogger, Scope.Transient)
.provideFactory(commonTokens.options, this.provideOptions, Scope.Transient)
.provideFactory(commonTokens.config, this.provideConfig, Scope.Transient)
.provideFactory(commonTokens.pluginResolver, this.providePluginResolver, Scope.Transient);
public reset() {
this.options = factory.strykerOptions();
this.logger = factory.logger();
this.pluginResolver = {
resolve: sinon.stub(),
resolveAll: sinon.stub()
};
}
}
export const testInjector = new TestInjector();
testInjector.reset();
return this.logger;
};
private readonly provideOptions = () => {
return this.options;
};
private readonly provideMutatorDescriptor = () => {
return this.mutatorDescriptor;
};
public pluginResolver: sinon.SinonStubbedInstance;
public options: StrykerOptions;
public mutatorDescriptor: MutatorDescriptor;
public logger: sinon.SinonStubbedInstance;
public injector: Injector = rootInjector
.provideValue(commonTokens.getLogger, this.provideLogger)
.provideFactory(commonTokens.logger, this.provideLogger, Scope.Transient)
.provideFactory(commonTokens.options, this.provideOptions, Scope.Transient)
.provideFactory(commonTokens.pluginResolver, this.providePluginResolver, Scope.Transient)
.provideFactory(commonTokens.mutatorDescriptor, this.provideMutatorDescriptor, Scope.Transient);
public reset() {
this.mutatorDescriptor = factory.mutatorDescriptor();
this.options = factory.strykerOptions();
this.logger = factory.logger();
this.pluginResolver = {
resolve: sinon.stub(),
resolveAll: sinon.stub()
};
}
}
export const testInjector = new TestInjector();
private readonly provideOptions = () => {
return this.options;
};
private readonly provideMutatorDescriptor = () => {
return this.mutatorDescriptor;
};
public pluginResolver: sinon.SinonStubbedInstance;
public options: StrykerOptions;
public mutatorDescriptor: MutatorDescriptor;
public logger: sinon.SinonStubbedInstance;
public injector: Injector = rootInjector
.provideValue(commonTokens.getLogger, this.provideLogger)
.provideFactory(commonTokens.logger, this.provideLogger, Scope.Transient)
.provideFactory(commonTokens.options, this.provideOptions, Scope.Transient)
.provideFactory(commonTokens.pluginResolver, this.providePluginResolver, Scope.Transient)
.provideFactory(commonTokens.mutatorDescriptor, this.provideMutatorDescriptor, Scope.Transient);
public reset() {
this.mutatorDescriptor = factory.mutatorDescriptor();
this.options = factory.strykerOptions();
this.logger = factory.logger();
this.pluginResolver = {
resolve: sinon.stub(),
resolveAll: sinon.stub()
};
}
}
export const testInjector = new TestInjector();
testInjector.reset();