UNPKG

3.15 kBTypeScriptView Raw
1/**
2 * This file was automatically generated by generate-json-schema-to-ts.js.
3 * DO NOT MODIFY IT BY HAND. Instead, modify the source file JSON file: mocha-runner-options.json,
4 * and run 'npm run generate' from monorepo base directory.
5 */
6export interface MochaRunnerOptions {
7 mochaOptions: MochaOptions;
8}
9/**
10 * Configuration for @stryker-mutator/mocha-runner
11 */
12export interface MochaOptions {
13 /**
14 * Set mocha's [`require` option](https://mochajs.org/#-r---require-module-name)
15 */
16 require?: string[];
17 /**
18 * Set mocha's [`ignore option](https://github.com/mochajs/mocha/blob/master/example/config/.mocharc.yml#L26)
19 */
20 ignore?: string[];
21 /**
22 * Set mocha's [`file options`](https://mochajs.org/#-file-filedirectoryglob)
23 */
24 file?: string[];
25 /**
26 * Specify a ['mocha.opts' file](https://mochajs.org/#mochaopts) to be loaded. Options specified directly in your stryker.conf.js file will overrule options from the 'mocha.opts' file. Disable loading of an additional mocha.opts file with `false`. The only supported mocha options are used: `--ui`, `--require`, `--async-only`, `--timeout`, `--grep` (or their short form counterparts). Others are ignored by the @stryker-mutator/mocha-runner.
27 */
28 opts?: string;
29 /**
30 * Explicit path to the [mocha config file](https://mochajs.org/#-config-path)
31 */
32 config?: string;
33 /**
34 * Specify an explicit path to a package.json file (ostensibly containing configuration in a mocha property). See https://mochajs.org/#-package-path.
35 */
36 package?: string;
37 /**
38 * Explicit turn off [mocha package file](https://mochajs.org/#-package-path)
39 */
40 'no-package'?: boolean;
41 /**
42 * Explicit turn off [mocha opts file](https://mochajs.org/#-opts-path)
43 */
44 'no-opts'?: boolean;
45 /**
46 * Explicit turn off [mocha config file](https://mochajs.org/#-config-path)
47 */
48 'no-config'?: boolean;
49 /**
50 * Set mocha's [`async-only` option](https://mochajs.org/#-async-only-a)
51 */
52 'async-only'?: boolean;
53 /**
54 * Set the name of your [mocha ui](https://mochajs.org/#-u---ui-name)
55 */
56 ui?: 'bdd' | 'tdd' | 'qunit' | 'exports';
57 /**
58 * DEPRECATED, use `spec` instead.
59 */
60 files?: string | string[];
61 /**
62 * Choose which files to include. This is comparable to [mocha's test directory](https://mochajs.org/#the-test-directory) although there is no support for `--recursive`.
63 *
64 * If you want to load all files recursively: use a globbing expression (`'test/** /*.js'`). If you want to decide on the order of files, use multiple globbing expressions. For example: use `['test/helpers/** /*.js', 'test/unit/** /*.js']` if you want to make sure your helpers are loaded before your unit tests.
65 */
66 spec?: string[];
67 /**
68 * Specify a mocha [`grep`](https://mochajs.org/#grep) command, to single out individual tests.
69 */
70 grep?: string;
71 /**
72 * Specify mocha [--extension](https://mochajs.org/#-extension-ext) property.
73 */
74 extension?: string[];
75}
76//# sourceMappingURL=mocha-runner-options.d.ts.map
\No newline at end of file