UNPKG

@stryker-mutator/tap-runner

Version:

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

39 lines (38 loc) 1.94 kB
{ "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "additionalProperties": false, "title": "StrykerTapRunnerOptions", "properties": { "tap": { "description": "Configuration for @stryker-mutator/tap-runner", "title": "TapRunnerOptions", "additionalProperties": false, "type": "object", "default": {}, "properties": { "testFiles": { "description": "Specify glob expressions to test files to run. Defaults to [\"{**/@(test|tests|__test__|__tests__)/**,**/*.@(test|tests|spec)}.@(cjs|mjs|js|jsx|ts|tsx)\"]", "type": "array", "items": { "type": "string" }, "default": ["{**/@(test|tests|__test__|__tests__)/**,**/*.@(test|tests|spec)}.@(cjs|mjs|js|jsx|ts|tsx|mts|cts)"] }, "nodeArgs": { "description": "Specify additional node arguments to be passed when running your test files. The following template variables could be used: `{{hookFile}}` and `{{testFile}}`. Note that stryker will always pass an additional `--require` flag to enable coverage analysis. In addition stryker will also prepend `-r {{hookFile}}` and prepend `{{testFile}}` if not found the template variable is not found.", "type": "array", "items": { "type": "string" }, "default": ["--test-reporter=tap", "-r", "{{hookFile}}", "{{testFile}}"] }, "forceBail": { "description": "Force a running test process to hard-exit after first bail test failure when disableBail is false.", "type": "boolean", "default": true } } } } }