stryker-api
Version:
The api for the extendable JavaScript mutation testing framework Stryker
49 lines • 1.7 kB
TypeScript
import { LoggerFactoryMethod, Logger } from '../../logging';
import { StrykerOptions } from '../../core';
import { PluginResolver } from './Plugins';
import { Config } from '../../config';
import { PluginKind } from './PluginKind';
import { commonTokens } from './tokens';
/**
* The basic dependency injection context within Stryker
*/
export interface BaseContext {
[]: LoggerFactoryMethod;
[]: Logger;
[]: PluginResolver;
}
/**
* The dependency injection context for most of Stryker's plugins.
* Can inject basic stuff as well as the Stryker options
*/
export interface OptionsContext extends BaseContext {
[]: StrykerOptions;
/**
* @deprecated This is just here to migrate between old and new plugins. Don't use this! Use `options` instead
*/
[]: Config;
}
/**
* The dependency injection context for a `TranspilerPlugin`
*/
export interface TranspilerPluginContext extends OptionsContext {
[]: boolean;
}
/**
* The dependency injection context for a `TestRunnerPlugin`
*/
export interface TestRunnerPluginContext extends OptionsContext {
[]: ReadonlyArray<string>;
}
/**
* Lookup type for plugin contexts by kind.
*/
export interface PluginContexts {
[]: BaseContext;
[]: OptionsContext;
[]: OptionsContext;
[]: OptionsContext;
[]: TestRunnerPluginContext;
[]: TranspilerPluginContext;
}
//# sourceMappingURL=Contexts.d.ts.map