UNPKG

@stryker-mutator/jest-runner

Version:

A plugin to use the jest test runner and framework in Stryker, the JavaScript mutation testing framework

19 lines (16 loc) 719 B
/** * The ConfigLoader interface is used to load different kinds of configurations for Jest. * Custom ConfigLoaders should implement this interface, the OptionsEditor will then be able to use it to load a Jest configuration. * * ConfigLoaders are typically used for projects that do not provide their configuration via the package.json file (e.g. React). * The loaderConfig method will return a usable config for Jest to use. */ import type { Config } from '@jest/types'; export interface JestConfigLoader { /* * Load the JSON representation of a Jest Configuration. * * @return {JestConfiguration} an object containing the Jest configuration. */ loadConfig(): Promise<Config.InitialOptions>; }