UNPKG

664 BPlain TextView Raw
1import fs from 'fs';
2import { URL } from 'url';
3
4import { declareFactoryPlugin, PluginKind } from '@stryker-mutator/api/plugin';
5
6import { createMochaTestRunner, createMochaTestRunnerFactory } from './mocha-runner-factories.js';
7
8export { MochaTestRunner } from './mocha-test-runner.js';
9
10export const strykerPlugins = [declareFactoryPlugin(PluginKind.TestRunner, 'mocha', createMochaTestRunner)];
11
12export 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
16export { createMochaTestRunner, createMochaTestRunnerFactory };