1 | import fs from 'fs';
|
2 | import { URL } from 'url';
|
3 |
|
4 | import { declareFactoryPlugin, PluginKind } from '@stryker-mutator/api/plugin';
|
5 |
|
6 | import { mixinJestEnvironment } from './jest-plugins/index.js';
|
7 | import { jestTestRunnerFactory } from './jest-test-runner.js';
|
8 |
|
9 | process.env.BABEL_ENV = 'test';
|
10 |
|
11 | export const strykerPlugins = [declareFactoryPlugin(PluginKind.TestRunner, 'jest', jestTestRunnerFactory)];
|
12 |
|
13 | export const strykerValidationSchema: typeof import('../schema/jest-runner-options.json') = JSON.parse(
|
14 | fs.readFileSync(new URL('../schema/jest-runner-options.json', import.meta.url), 'utf-8')
|
15 | );
|
16 |
|
17 | export { mixinJestEnvironment };
|