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