UNPKG

@stryker-mutator/tap-runner

Version:

A plugin to use the TAP (test anything protocol) test runner in Stryker, the JavaScript mutation testing framework

22 lines (17 loc) 584 B
import fs from 'fs'; import { declareFactoryPlugin, PluginKind } from '@stryker-mutator/api/plugin'; import { createTapTestRunner } from './tap-test-runner.js'; export const strykerPlugins = [ declareFactoryPlugin(PluginKind.TestRunner, 'tap', createTapTestRunner), ]; export { TapTestRunner, createTapTestRunnerFactory, } from './tap-test-runner.js'; export const strykerValidationSchema: typeof import('../schema/tap-runner-options.json') = JSON.parse( fs.readFileSync( new URL('../schema/tap-runner-options.json', import.meta.url), 'utf-8', ), );