@systemfsoftware/stryker-js 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +73 -0
- package/LICENSE +3 -15
- package/README.md +67 -13
- package/dist/Plugins-sA_9VKus.d.mts +96 -0
- package/dist/builtin-reporters-wAuKFSsd.mjs +672 -0
- package/dist/builtin-reporters.d.mts +14 -0
- package/dist/builtin-reporters.mjs +2 -0
- package/dist/compiler-Bq9Nelu8.mjs +48406 -0
- package/dist/config.d.mts +11 -0
- package/dist/config.mjs +7 -0
- package/dist/dist-B3nT7z4G.mjs +5155 -0
- package/dist/execAsync-CfPZgJSD.mjs +10 -0
- package/dist/execAsync-DdCu5QLN.mjs +10 -0
- package/dist/getMachineId-bsd-C6bLIaiv.mjs +27 -0
- package/dist/getMachineId-bsd-CXSiHDga.mjs +27 -0
- package/dist/getMachineId-darwin-D3cIKeqx.mjs +24 -0
- package/dist/getMachineId-darwin-DPZ0kdKD.mjs +24 -0
- package/dist/getMachineId-linux-CQwLSlZk.mjs +20 -0
- package/dist/getMachineId-linux-Ci8OVJU0.mjs +20 -0
- package/dist/getMachineId-unsupported-PX0hnW6X.mjs +15 -0
- package/dist/getMachineId-unsupported-_ExL3Avl.mjs +15 -0
- package/dist/getMachineId-win-BCsS9pC_.mjs +26 -0
- package/dist/getMachineId-win-D9Tb0p7w.mjs +26 -0
- package/dist/index.d.mts +659 -1253
- package/dist/index.mjs +3 -1034
- package/dist/main.mjs +104333 -0
- package/dist/merge-config-BrrNQWje.mjs +16 -0
- package/dist/mutation-test.cell-RmF-sBUm.d.mts +509 -0
- package/dist/output-mode-CfGHDpi5.d.mts +17 -0
- package/dist/parser.wasm32-wasi.wasm +0 -0
- package/dist/plugin-loader.d.mts +106 -0
- package/dist/plugin-loader.mjs +2 -0
- package/dist/plugin-worker-entry-DNu0SHO8.mjs +1413 -0
- package/dist/promises.d.mts +5 -0
- package/dist/promises.mjs +14 -0
- package/dist/rolldown-runtime-Dr7-SnC6.mjs +45 -0
- package/dist/src-Bzh7ykDp.mjs +4724 -0
- package/dist/stryker-config-BlfHxS7n.d.mts +14 -0
- package/dist/wasm-Dr7kZatW.mjs +13017 -0
- package/package.json +80 -40
package/dist/index.d.mts
CHANGED
|
@@ -1,393 +1,358 @@
|
|
|
1
1
|
import * as Cause from 'effect/Cause';
|
|
2
|
+
import { Cell } from '@systemfsoftware/effect-cell-types';
|
|
3
|
+
import { CheckResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
4
|
+
import * as ChildProcessSpawner from 'effect/unstable/process/ChildProcessSpawner';
|
|
5
|
+
import { CompleteDryRunResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
2
6
|
import * as Context from 'effect/Context';
|
|
7
|
+
import { CoverageData } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
8
|
+
import * as DateTime from 'effect/DateTime';
|
|
9
|
+
import { DryRunOptions } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
10
|
+
import { DryRunResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
11
|
+
import * as Duration from 'effect/Duration';
|
|
12
|
+
import { Duration as Duration_2 } from 'effect/Duration';
|
|
3
13
|
import * as Effect from 'effect/Effect';
|
|
4
14
|
import * as Exit from 'effect/Exit';
|
|
15
|
+
import { ExitClass } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
16
|
+
import { FileDescription } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
17
|
+
import { FileDescriptions } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
18
|
+
import { FileResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
5
19
|
import * as FileSystem from 'effect/FileSystem';
|
|
6
20
|
import * as HashMap from 'effect/HashMap';
|
|
21
|
+
import { Ignorer } from '@systemfsoftware/stryker-ignorer-interface';
|
|
7
22
|
import * as Layer from 'effect/Layer';
|
|
8
|
-
import
|
|
23
|
+
import { Metrics } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
24
|
+
import { MetricsResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
25
|
+
import * as MutableHashMap from 'effect/MutableHashMap';
|
|
26
|
+
import * as MutableHashSet from 'effect/MutableHashSet';
|
|
27
|
+
import { Mutant } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
28
|
+
import { MutantResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
29
|
+
import { MutantRunOptions } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
30
|
+
import { MutantRunResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
31
|
+
import * as mutants from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
32
|
+
import { MutantStatus } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
33
|
+
import { MutateDescription } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
34
|
+
import { MutationTestResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
35
|
+
import { PartialStrykerOptions } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
9
36
|
import * as Path from 'effect/Path';
|
|
37
|
+
import { PlatformError } from 'effect/PlatformError';
|
|
10
38
|
import * as Queue from 'effect/Queue';
|
|
39
|
+
import { ReporterFactory } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
40
|
+
import { ReporterRpcs } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
41
|
+
import * as Rpc from 'effect/unstable/rpc/Rpc';
|
|
42
|
+
import * as RpcClient from 'effect/unstable/rpc/RpcClient';
|
|
43
|
+
import { RpcClientError } from 'effect/unstable/rpc/RpcClientError';
|
|
44
|
+
import * as RpcGroup from 'effect/unstable/rpc/RpcGroup';
|
|
45
|
+
import { RunMutantResult } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
46
|
+
import { RunPlan } from '@systemfsoftware/stryker-js-instrumenter/mutants';
|
|
11
47
|
import * as S from 'effect/Schema';
|
|
12
|
-
import
|
|
48
|
+
import * as Schedule from 'effect/Schedule';
|
|
49
|
+
import { Schema } from 'effect';
|
|
50
|
+
import * as schema from '@systemfsoftware/stryker-js-plugin-interface';
|
|
51
|
+
import * as Scope from 'effect/Scope';
|
|
52
|
+
import * as Socket from 'effect/unstable/socket/Socket';
|
|
53
|
+
import * as Stdio from 'effect/Stdio';
|
|
54
|
+
import { StrykerOptions } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
55
|
+
import { TestResult } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
56
|
+
import { TestRunnerCapabilities } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
57
|
+
import { TestRunnerFailed } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
58
|
+
import { WorkerPluginKind } from '@systemfsoftware/stryker-js-plugin-interface';
|
|
13
59
|
import { YieldableError } from 'effect/Cause';
|
|
14
60
|
|
|
15
|
-
export declare
|
|
61
|
+
export declare const ACTIONABLE_STATUSES: readonly ['Survived', 'NoCoverage', 'Timeout', 'RuntimeError'];
|
|
16
62
|
|
|
17
|
-
|
|
18
|
-
readonly id: string;
|
|
19
|
-
readonly name: string;
|
|
20
|
-
readonly timeSpentMs: number;
|
|
21
|
-
readonly fileName?: string;
|
|
22
|
-
readonly startPosition?: Position;
|
|
23
|
-
}
|
|
63
|
+
declare type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
|
|
24
64
|
|
|
25
|
-
|
|
65
|
+
declare type AnyWorkerPluginDescriptor = { [K in WorkerPluginKind]: WorkerPluginDescriptor<K>; }[WorkerPluginKind];
|
|
26
66
|
|
|
27
|
-
|
|
28
|
-
readonly homepageUrl: S.String;
|
|
29
|
-
readonly imageUrl: S.optional<S.String>;
|
|
30
|
-
}>;
|
|
67
|
+
declare type AnyWorkerPluginSource = { [K in WorkerPluginKind]: WorkerPluginSource<K>; }[WorkerPluginKind];
|
|
31
68
|
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
export declare const causeText: (cause: unknown, depth: number) => string | undefined;
|
|
69
|
+
export declare const buildTestRunner: <ChildRunnerError>(context: TestRunnerBuildContext, childProcessRunner: Effect.Effect<PooledTestRunner, ChildRunnerError, Scope.Scope | WorkerLauncher>) => Effect.Effect<PooledTestRunner, PooledTestRunnerError | ChildRunnerError, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Scope.Scope | WorkerLauncher>;
|
|
35
70
|
|
|
36
|
-
export declare
|
|
71
|
+
export declare function buildVerdictEnvelope(report: schema.MutationTestResult, mode: OutputMode, signal: ModeSignal, runId: string, basePath: string, pathService: Path.Path): VerdictEnvelope;
|
|
37
72
|
|
|
38
|
-
declare const
|
|
73
|
+
export declare const calculateMetrics: (files: Readonly<Record<string, FileResult>>) => MetricsResult;
|
|
39
74
|
|
|
40
|
-
|
|
75
|
+
declare class CheckerAnsweredUnrequested extends CheckerAnsweredUnrequested_base {}
|
|
41
76
|
|
|
42
|
-
declare const
|
|
43
|
-
readonly cause: S.String;
|
|
77
|
+
declare const CheckerAnsweredUnrequested_base: S.Class<CheckerAnsweredUnrequested, S.TaggedStruct<"CheckerAnsweredUnrequested", {
|
|
44
78
|
readonly checkerName: S.String;
|
|
45
|
-
readonly
|
|
79
|
+
readonly phase: S.Literals<readonly ["check", "group"]>;
|
|
80
|
+
readonly unrequestedIds: S.$Array<S.String>;
|
|
81
|
+
readonly requestedIds: S.$Array<S.String>;
|
|
46
82
|
}>, YieldableError>;
|
|
47
83
|
|
|
48
|
-
|
|
49
|
-
readonly init: Effect.Effect<void, CheckerFailed>;
|
|
50
|
-
readonly check: (mutants: readonly Mutant[]) => Effect.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
|
|
51
|
-
readonly group: (mutants: readonly Mutant[]) => Effect.Effect<readonly (readonly string[])[], CheckerFailed>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export declare type CheckResult = FailedCheckResult | PassedCheckResult;
|
|
84
|
+
declare type CheckerContractBroken = CheckerAnsweredUnrequested | CheckerSkippedRequested;
|
|
55
85
|
|
|
56
|
-
|
|
57
|
-
readonly status: S.Literal<"passed">;
|
|
58
|
-
}>, S.Struct<{
|
|
59
|
-
readonly status: S.Literal<"compileError">;
|
|
60
|
-
readonly reason: S.String;
|
|
61
|
-
}>]>;
|
|
86
|
+
declare type CheckerCrash = ChildProcessCrashedError | OutOfMemoryError;
|
|
62
87
|
|
|
63
|
-
|
|
88
|
+
/**
|
|
89
|
+
* A checker held by the pool.
|
|
90
|
+
*
|
|
91
|
+
* The pool must be able to interrupt a checker mid-call when the run is
|
|
92
|
+
* cancelled, so the port uses Effect, which can be interrupted, where a Promise
|
|
93
|
+
* cannot. The error channel names both crash variants rather than `unknown`,
|
|
94
|
+
* which lets the retry combinator prove it handles every one of them.
|
|
95
|
+
*/
|
|
96
|
+
export declare interface CheckerResourceService {
|
|
97
|
+
readonly check: (checkerName: string, mutants: readonly Mutant[]) => Effect.Effect<Record<string, CheckResult>, CheckerCrash>;
|
|
98
|
+
/**
|
|
99
|
+
* Partition mutants into groups that can be checked together.
|
|
100
|
+
*
|
|
101
|
+
* A checker with no grouping opinion returns one group per mutant — the
|
|
102
|
+
* identity partition — rather than leaving the member off, which is what
|
|
103
|
+
* every call site used to synthesise for itself.
|
|
104
|
+
*/
|
|
105
|
+
readonly group: (checkerName: string, mutants: readonly Mutant[]) => Effect.Effect<readonly (readonly string[])[], CheckerCrash>;
|
|
106
|
+
}
|
|
64
107
|
|
|
65
|
-
|
|
108
|
+
declare class CheckerSkippedRequested extends CheckerSkippedRequested_base {}
|
|
66
109
|
|
|
67
|
-
|
|
110
|
+
declare const CheckerSkippedRequested_base: S.Class<CheckerSkippedRequested, S.TaggedStruct<"CheckerSkippedRequested", {
|
|
111
|
+
readonly checkerName: S.String;
|
|
112
|
+
readonly phase: S.Literals<readonly ["check", "group"]>;
|
|
113
|
+
readonly missingIds: S.$Array<S.String>;
|
|
114
|
+
}>, YieldableError>;
|
|
68
115
|
|
|
69
|
-
export declare
|
|
116
|
+
export declare const checkGroupedPlans: (checker: CheckerResourceService, checkerName: string, plans: readonly RunPlan[]) => Effect.Effect<readonly (readonly [RunPlan, CheckResult])[], CheckerCrash | CheckerContractBroken>;
|
|
70
117
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
readonly
|
|
76
|
-
}
|
|
118
|
+
/**
|
|
119
|
+
* The child process hosting a worker ended when it was not supposed to.
|
|
120
|
+
*/
|
|
121
|
+
export declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
|
|
122
|
+
readonly exitClass: 'InternalError';
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
|
|
126
|
+
readonly pid: Schema.Int;
|
|
127
|
+
readonly exit: Schema.Union<readonly [Schema.Struct<{
|
|
128
|
+
readonly _tag: Schema.Literals<readonly ["Code"]>;
|
|
129
|
+
readonly code: Schema.Int;
|
|
130
|
+
}>, Schema.Struct<{
|
|
131
|
+
readonly _tag: Schema.Literals<readonly ["Signal"]>;
|
|
132
|
+
readonly signal: Schema.String;
|
|
133
|
+
}>]>;
|
|
134
|
+
readonly cause: Schema.optional<Schema.String>;
|
|
135
|
+
}>, YieldableError>;
|
|
77
136
|
|
|
78
|
-
export declare
|
|
137
|
+
export declare const classifyWorkerExit: (pid: number, exitCode: number) => ChildProcessCrashedError | OutOfMemoryError;
|
|
79
138
|
|
|
80
|
-
declare
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
}
|
|
139
|
+
export declare interface CompiledTests {
|
|
140
|
+
readonly fileName: string;
|
|
141
|
+
readonly script: VmScript;
|
|
142
|
+
}
|
|
84
143
|
|
|
85
|
-
export declare
|
|
144
|
+
export declare const CONFIG_SYNTAX_HELP: string;
|
|
86
145
|
|
|
87
|
-
export declare const
|
|
88
|
-
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
89
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
146
|
+
export declare const ConfigDocumentSchema: S.$Record<S.String, S.Unknown>;
|
|
90
147
|
|
|
91
|
-
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
148
|
+
declare interface ConfigEnv {
|
|
149
|
+
readonly command: 'run' | 'merge-reports';
|
|
150
|
+
readonly isDryRun: boolean;
|
|
151
|
+
readonly mode: OutputMode;
|
|
152
|
+
readonly isCi: boolean;
|
|
95
153
|
}
|
|
96
154
|
|
|
97
|
-
export declare
|
|
98
|
-
readonly
|
|
99
|
-
readonly reporterFactories: readonly SelectedReporterFactory[];
|
|
100
|
-
readonly shadowings: readonly Shadowing[];
|
|
155
|
+
export declare class ConfigError extends ConfigError_base {
|
|
156
|
+
readonly exitClass: 'ConfigError';
|
|
101
157
|
}
|
|
102
158
|
|
|
103
|
-
|
|
159
|
+
declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
|
|
160
|
+
readonly message: S.String;
|
|
161
|
+
}>, YieldableError>;
|
|
104
162
|
|
|
105
|
-
export declare
|
|
106
|
-
readonly
|
|
107
|
-
}
|
|
163
|
+
export declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
|
|
164
|
+
readonly exitClass: 'ConfigError';
|
|
165
|
+
}
|
|
108
166
|
|
|
109
|
-
|
|
167
|
+
declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
|
|
168
|
+
readonly file: S.String;
|
|
169
|
+
readonly cause: S.Unknown;
|
|
170
|
+
}>, YieldableError>;
|
|
110
171
|
|
|
111
|
-
export declare
|
|
112
|
-
readonly
|
|
113
|
-
readonly perTest: CoveragePerTestId;
|
|
172
|
+
export declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
|
|
173
|
+
readonly exitClass: 'ConfigError';
|
|
114
174
|
}
|
|
115
175
|
|
|
116
|
-
|
|
176
|
+
declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
|
|
177
|
+
readonly file: S.String;
|
|
178
|
+
}>, YieldableError>;
|
|
117
179
|
|
|
118
|
-
declare
|
|
180
|
+
export declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
|
|
181
|
+
readonly exitClass: 'ConfigError';
|
|
182
|
+
}
|
|
119
183
|
|
|
120
|
-
declare
|
|
121
|
-
|
|
122
|
-
|
|
184
|
+
declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
|
|
185
|
+
readonly file: S.String;
|
|
186
|
+
readonly cause: S.Unknown;
|
|
187
|
+
}>, YieldableError>;
|
|
123
188
|
|
|
124
|
-
export declare
|
|
189
|
+
export declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
|
|
190
|
+
readonly exitClass: 'ConfigError';
|
|
191
|
+
get message(): string;
|
|
192
|
+
}
|
|
125
193
|
|
|
126
|
-
|
|
194
|
+
declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
|
|
195
|
+
readonly file: S.String;
|
|
196
|
+
readonly hint: S.String;
|
|
197
|
+
}>, YieldableError>;
|
|
127
198
|
|
|
128
|
-
export declare
|
|
199
|
+
export declare interface ConfigInvocation {
|
|
200
|
+
readonly command: 'run' | 'merge-reports';
|
|
201
|
+
readonly mode: OutputMode;
|
|
202
|
+
}
|
|
129
203
|
|
|
130
|
-
export declare
|
|
204
|
+
export declare const connectRetry: Schedule.Schedule<Duration_2, unknown, never, never>;
|
|
131
205
|
|
|
132
|
-
export declare
|
|
206
|
+
export declare const countMutants: (mutants: readonly MutantResult[]) => Metrics;
|
|
133
207
|
|
|
134
|
-
|
|
135
|
-
* Every option optional, all the way down, and mutable: this is the type a
|
|
136
|
-
* caller CONSTRUCTS by assignment, so `readonly` is stripped. The decoded
|
|
137
|
-
* `StrykerOptions` keeps it - that side is read, never built.
|
|
138
|
-
*/
|
|
139
|
-
export declare type DeepOptional<T> = { -readonly [P in keyof T]?: T[P] extends Record<string, unknown> ? DeepOptional<T[P]> | undefined : T[P]; };
|
|
208
|
+
export declare const createDefaultOptions: Effect.Effect<StrykerOptions>;
|
|
140
209
|
|
|
141
|
-
export declare
|
|
210
|
+
export declare function createFileMatcher(pattern: boolean | string, pathService: Path.Path, allowHiddenFiles?: boolean): (fileName: string) => boolean;
|
|
142
211
|
|
|
143
|
-
export declare const
|
|
212
|
+
export declare const decideExtendsStep: (state: ExtendsStepState, document: PartialStrykerOptions, file: string, pathService: Path.Path) => ExtendsStepDecision;
|
|
144
213
|
|
|
145
|
-
export declare
|
|
214
|
+
export declare function deepFreeze<T>(target: T): Immutable<T>;
|
|
146
215
|
|
|
147
|
-
declare const
|
|
148
|
-
readonly timing: S.Struct<{
|
|
149
|
-
readonly net: S.Finite;
|
|
150
|
-
readonly overhead: S.Finite;
|
|
151
|
-
}>;
|
|
152
|
-
readonly capabilities: S.Struct<{
|
|
153
|
-
readonly reloadEnvironment: S.Boolean;
|
|
154
|
-
}>;
|
|
155
|
-
readonly testCount: S.Finite;
|
|
156
|
-
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
157
|
-
readonly id: S.String;
|
|
158
|
-
readonly name: S.String;
|
|
159
|
-
readonly timeSpentMs: S.Finite;
|
|
160
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
161
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
162
|
-
readonly line: S.Finite;
|
|
163
|
-
readonly column: S.Finite;
|
|
164
|
-
}>>;
|
|
165
|
-
readonly status: S.Literal<"failed">;
|
|
166
|
-
readonly failureMessage: S.String;
|
|
167
|
-
}>, S.Struct<{
|
|
168
|
-
readonly id: S.String;
|
|
169
|
-
readonly name: S.String;
|
|
170
|
-
readonly timeSpentMs: S.Finite;
|
|
171
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
172
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
173
|
-
readonly line: S.Finite;
|
|
174
|
-
readonly column: S.Finite;
|
|
175
|
-
}>>;
|
|
176
|
-
readonly status: S.Literal<"skipped">;
|
|
177
|
-
}>, S.Struct<{
|
|
178
|
-
readonly id: S.String;
|
|
179
|
-
readonly name: S.String;
|
|
180
|
-
readonly timeSpentMs: S.Finite;
|
|
181
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
182
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
183
|
-
readonly line: S.Finite;
|
|
184
|
-
readonly column: S.Finite;
|
|
185
|
-
}>>;
|
|
186
|
-
readonly status: S.Literal<"success">;
|
|
187
|
-
}>]>>;
|
|
188
|
-
}>, {}>;
|
|
189
|
-
|
|
190
|
-
export declare interface DryRunOptions extends RunOptions {
|
|
191
|
-
readonly coverageAnalysis: CoverageAnalysis;
|
|
192
|
-
readonly files?: readonly string[];
|
|
193
|
-
readonly testFiles?: readonly string[];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export declare const DryRunOptionsSchema: S.Struct<{
|
|
197
|
-
readonly timeout: S.Finite;
|
|
198
|
-
readonly disableBail: S.Boolean;
|
|
199
|
-
readonly coverageAnalysis: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
200
|
-
readonly files: S.optionalKey<S.$Array<S.String>>;
|
|
201
|
-
readonly testFiles: S.optionalKey<S.$Array<S.String>>;
|
|
202
|
-
}>;
|
|
203
|
-
|
|
204
|
-
export declare type DryRunResult = CompleteDryRunResult | ErrorDryRunResult | TimeoutDryRunResult;
|
|
205
|
-
|
|
206
|
-
export declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
207
|
-
readonly status: S.Literal<"complete">;
|
|
208
|
-
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
209
|
-
readonly id: S.String;
|
|
210
|
-
readonly name: S.String;
|
|
211
|
-
readonly timeSpentMs: S.Finite;
|
|
212
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
213
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
214
|
-
readonly line: S.Finite;
|
|
215
|
-
readonly column: S.Finite;
|
|
216
|
-
}>>;
|
|
217
|
-
readonly status: S.Literal<"failed">;
|
|
218
|
-
readonly failureMessage: S.String;
|
|
219
|
-
}>, S.Struct<{
|
|
220
|
-
readonly id: S.String;
|
|
221
|
-
readonly name: S.String;
|
|
222
|
-
readonly timeSpentMs: S.Finite;
|
|
223
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
224
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
225
|
-
readonly line: S.Finite;
|
|
226
|
-
readonly column: S.Finite;
|
|
227
|
-
}>>;
|
|
228
|
-
readonly status: S.Literal<"skipped">;
|
|
229
|
-
}>, S.Struct<{
|
|
230
|
-
readonly id: S.String;
|
|
231
|
-
readonly name: S.String;
|
|
232
|
-
readonly timeSpentMs: S.Finite;
|
|
233
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
234
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
235
|
-
readonly line: S.Finite;
|
|
236
|
-
readonly column: S.Finite;
|
|
237
|
-
}>>;
|
|
238
|
-
readonly status: S.Literal<"success">;
|
|
239
|
-
}>]>>;
|
|
240
|
-
readonly mutantCoverage: S.optionalKey<S.Struct<{
|
|
241
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
242
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
243
|
-
}>>;
|
|
244
|
-
}>, S.Struct<{
|
|
245
|
-
readonly status: S.Literal<"timeout">;
|
|
246
|
-
readonly reason: S.optionalKey<S.String>;
|
|
247
|
-
}>, S.Struct<{
|
|
248
|
-
readonly status: S.Literal<"error">;
|
|
249
|
-
readonly errorMessage: S.String;
|
|
250
|
-
}>]>;
|
|
216
|
+
export declare const defaultOptions: Effect.Effect<Immutable<StrykerOptions>, never, never>;
|
|
251
217
|
|
|
252
|
-
export declare
|
|
218
|
+
export declare function describeErrors(error: S.SchemaError): string[];
|
|
253
219
|
|
|
254
|
-
|
|
220
|
+
declare const DoneTag: {
|
|
221
|
+
readonly _tag: 'done';
|
|
222
|
+
};
|
|
255
223
|
|
|
256
|
-
|
|
257
|
-
readonly plan: 'EarlyResult';
|
|
258
|
-
readonly mutant: Mutant;
|
|
259
|
-
}
|
|
224
|
+
declare type DoneTag = typeof DoneTag;
|
|
260
225
|
|
|
261
|
-
export declare interface
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
syscall?: string;
|
|
226
|
+
export declare interface DryRunDone extends InstrumentDone {
|
|
227
|
+
readonly dryRunResult: CompleteDryRunResult;
|
|
228
|
+
readonly testCoverage: TestCoverage;
|
|
229
|
+
readonly timeOverhead: Duration.Duration;
|
|
266
230
|
}
|
|
267
231
|
|
|
268
|
-
export declare
|
|
269
|
-
NoSuchFileOrDirectory: 'ENOENT';
|
|
270
|
-
}>;
|
|
271
|
-
|
|
272
|
-
export declare interface ErrorDryRunResult {
|
|
273
|
-
readonly status: 'error';
|
|
274
|
-
readonly errorMessage: string;
|
|
275
|
-
}
|
|
232
|
+
export declare type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
|
|
276
233
|
|
|
277
|
-
|
|
278
|
-
readonly
|
|
279
|
-
readonly
|
|
234
|
+
declare interface EvaluatorPluginDescriptor {
|
|
235
|
+
readonly kind: 'Evaluator';
|
|
236
|
+
readonly name: string;
|
|
280
237
|
}
|
|
281
238
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
declare const Evaluator_base: Context.ServiceClass<Evaluator, "~@systemfsoftware/stryker-js/Evaluator", EvaluatorService>;
|
|
287
|
-
|
|
288
|
-
export declare class EvaluatorFailed extends EvaluatorFailed_base {}
|
|
289
|
-
|
|
290
|
-
declare const EvaluatorFailed_base: S.Class<EvaluatorFailed, S.TaggedStruct<"EvaluatorFailed", {
|
|
291
|
-
readonly cause: S.Unknown;
|
|
292
|
-
}>, YieldableError>;
|
|
293
|
-
|
|
294
|
-
export declare interface EvaluatorService {
|
|
295
|
-
readonly evaluate: (report: MutationTestResult) => Effect.Effect<ExitClass | null, EvaluatorFailed>;
|
|
239
|
+
declare interface EvaluatorPluginSource {
|
|
240
|
+
readonly kind: 'Evaluator';
|
|
241
|
+
readonly name: string;
|
|
242
|
+
readonly modulePath: string;
|
|
296
243
|
}
|
|
297
244
|
|
|
298
245
|
export declare const EXIT_CODE: Record<ExitClass, number>;
|
|
299
246
|
|
|
300
|
-
export
|
|
247
|
+
export { ExitClass }
|
|
301
248
|
|
|
302
|
-
export declare
|
|
249
|
+
export declare const extendsPropertySchema: S.optionalKey<S.String>;
|
|
303
250
|
|
|
304
|
-
export declare
|
|
305
|
-
readonly reason: string;
|
|
306
|
-
readonly status: 'compileError';
|
|
307
|
-
}
|
|
251
|
+
export declare type ExtendsRefusalReason = 'cycle' | 'non-string-extends';
|
|
308
252
|
|
|
309
|
-
export declare
|
|
310
|
-
readonly
|
|
311
|
-
|
|
312
|
-
|
|
253
|
+
export declare type ExtendsStepDecision = (DoneTag & {
|
|
254
|
+
readonly options: PartialStrykerOptions;
|
|
255
|
+
}) | (ReadTag & {
|
|
256
|
+
readonly path: string;
|
|
257
|
+
readonly state: ExtendsStepState;
|
|
258
|
+
}) | (ResolveTag & {
|
|
259
|
+
readonly specifier: string;
|
|
260
|
+
readonly state: ExtendsStepState;
|
|
261
|
+
}) | (RefusedTag & {
|
|
262
|
+
readonly reason: ExtendsRefusalReason;
|
|
263
|
+
readonly file: string;
|
|
264
|
+
});
|
|
313
265
|
|
|
314
|
-
export declare interface
|
|
315
|
-
readonly
|
|
266
|
+
export declare interface ExtendsStepDocument {
|
|
267
|
+
readonly path: string;
|
|
268
|
+
readonly options: PartialStrykerOptions;
|
|
316
269
|
}
|
|
317
270
|
|
|
318
|
-
export declare
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
export declare type FileResultDictionary = typeof FileResultDictionarySchema.Type;
|
|
271
|
+
export declare interface ExtendsStepState {
|
|
272
|
+
readonly visited: readonly string[];
|
|
273
|
+
readonly documents: readonly ExtendsStepDocument[];
|
|
274
|
+
}
|
|
323
275
|
|
|
324
|
-
export declare
|
|
325
|
-
readonly language: S.String;
|
|
326
|
-
readonly source: S.String;
|
|
327
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
328
|
-
readonly id: S.String;
|
|
329
|
-
readonly mutatorName: S.String;
|
|
330
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
331
|
-
readonly location: S.Struct<{
|
|
332
|
-
readonly start: S.Struct<{
|
|
333
|
-
readonly line: S.Finite;
|
|
334
|
-
readonly column: S.Finite;
|
|
335
|
-
}>;
|
|
336
|
-
readonly end: S.Struct<{
|
|
337
|
-
readonly line: S.Finite;
|
|
338
|
-
readonly column: S.Finite;
|
|
339
|
-
}>;
|
|
340
|
-
}>;
|
|
341
|
-
readonly replacement: S.optional<S.String>;
|
|
342
|
-
readonly description: S.optional<S.String>;
|
|
343
|
-
readonly statusReason: S.optional<S.String>;
|
|
344
|
-
readonly static: S.optional<S.Boolean>;
|
|
345
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
346
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
347
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
348
|
-
readonly duration: S.optional<S.Finite>;
|
|
349
|
-
}>>;
|
|
350
|
-
}>>;
|
|
276
|
+
export declare function findUnserializables(thing: unknown): UnserializableDescription[] | undefined;
|
|
351
277
|
|
|
352
|
-
export declare const
|
|
353
|
-
readonly language: S.String;
|
|
354
|
-
readonly source: S.String;
|
|
355
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
356
|
-
readonly id: S.String;
|
|
357
|
-
readonly mutatorName: S.String;
|
|
358
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
359
|
-
readonly location: S.Struct<{
|
|
360
|
-
readonly start: S.Struct<{
|
|
361
|
-
readonly line: S.Finite;
|
|
362
|
-
readonly column: S.Finite;
|
|
363
|
-
}>;
|
|
364
|
-
readonly end: S.Struct<{
|
|
365
|
-
readonly line: S.Finite;
|
|
366
|
-
readonly column: S.Finite;
|
|
367
|
-
}>;
|
|
368
|
-
}>;
|
|
369
|
-
readonly replacement: S.optional<S.String>;
|
|
370
|
-
readonly description: S.optional<S.String>;
|
|
371
|
-
readonly statusReason: S.optional<S.String>;
|
|
372
|
-
readonly static: S.optional<S.Boolean>;
|
|
373
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
374
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
375
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
376
|
-
readonly duration: S.optional<S.Finite>;
|
|
377
|
-
}>>;
|
|
378
|
-
}>;
|
|
278
|
+
export declare const forkCoreSchema: Record<string, unknown>;
|
|
379
279
|
|
|
380
|
-
export declare
|
|
280
|
+
export declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
281
|
+
readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
282
|
+
readonly buildCommand: S.optional<S.String>;
|
|
283
|
+
readonly checkers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
284
|
+
readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
285
|
+
readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
|
|
286
|
+
readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
287
|
+
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
288
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
289
|
+
readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
|
|
290
|
+
readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
291
|
+
readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
292
|
+
readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
293
|
+
readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
294
|
+
readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
|
|
295
|
+
readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
296
|
+
readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
297
|
+
readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
298
|
+
readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
299
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
300
|
+
readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
301
|
+
readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
302
|
+
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
303
|
+
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
304
|
+
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
305
|
+
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
306
|
+
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
307
|
+
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
308
|
+
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
309
|
+
readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
310
|
+
readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
|
|
311
|
+
readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
|
|
312
|
+
readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
313
|
+
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
314
|
+
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
315
|
+
}>, never>;
|
|
316
|
+
readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
317
|
+
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
318
|
+
readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
319
|
+
readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
320
|
+
readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
321
|
+
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
322
|
+
}>, never>;
|
|
323
|
+
readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
324
|
+
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
325
|
+
}>, never>;
|
|
326
|
+
readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
|
|
327
|
+
readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
328
|
+
readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
|
|
329
|
+
readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
|
|
330
|
+
readonly testRunner: S.withDecodingDefaultKey<S.String, never>;
|
|
331
|
+
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
332
|
+
readonly thresholds: S.withDecodingDefaultKey<S.Struct<{
|
|
333
|
+
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
334
|
+
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
335
|
+
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
336
|
+
}>, never>;
|
|
337
|
+
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
338
|
+
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
339
|
+
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
340
|
+
readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
|
|
341
|
+
readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
|
|
342
|
+
readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
343
|
+
readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
344
|
+
readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
345
|
+
readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
346
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
|
|
347
|
+
readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
348
|
+
readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
349
|
+
readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
350
|
+
readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
351
|
+
readonly survivorsPriorReport: S.optionalKey<S.String>;
|
|
352
|
+
readonly extends: S.optionalKey<S.String>;
|
|
353
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
381
354
|
|
|
382
|
-
export declare
|
|
383
|
-
readonly name: S.String;
|
|
384
|
-
readonly version: S.optional<S.String>;
|
|
385
|
-
readonly branding: S.optional<S.Struct<{
|
|
386
|
-
readonly homepageUrl: S.String;
|
|
387
|
-
readonly imageUrl: S.optional<S.String>;
|
|
388
|
-
}>>;
|
|
389
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
390
|
-
}>;
|
|
355
|
+
export declare function generateRunId(now: DateTime.Utc): string;
|
|
391
356
|
|
|
392
357
|
export declare class Heartbeat extends Heartbeat_base {}
|
|
393
358
|
|
|
@@ -407,434 +372,37 @@ declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
|
|
|
407
372
|
|
|
408
373
|
export declare function highestExitClass(pending: Iterable<ExitClass>): ExitClass | null;
|
|
409
374
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
declare const Ignorer_base: Context.ServiceClass<Ignorer, "~@systemfsoftware/stryker-js/Ignorer", IgnorerService>;
|
|
413
|
-
|
|
414
|
-
export declare interface IgnorerService {
|
|
415
|
-
readonly shouldIgnore: (path: NodePath) => Option.Option<string>;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export declare const INSTRUMENTER_CONSTANTS: Readonly<{
|
|
419
|
-
NAMESPACE: '__stryker__';
|
|
420
|
-
MUTATION_COVERAGE_OBJECT: 'mutantCoverage';
|
|
421
|
-
ACTIVE_MUTANT: 'activeMutant';
|
|
422
|
-
CURRENT_TEST_ID: 'currentTestId';
|
|
423
|
-
HIT_COUNT: 'hitCount';
|
|
424
|
-
HIT_LIMIT: 'hitLimit';
|
|
425
|
-
ACTIVE_MUTANT_ENV_VARIABLE: '__STRYKER_ACTIVE_MUTANT__';
|
|
426
|
-
}>;
|
|
427
|
-
|
|
428
|
-
export declare interface InstrumenterContext {
|
|
429
|
-
activeMutant?: string;
|
|
430
|
-
currentTestId?: string;
|
|
431
|
-
mutantCoverage?: MutantCoverage;
|
|
432
|
-
hitCount?: number;
|
|
433
|
-
hitLimit?: number;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export declare function isErrnoException(error: unknown): error is ErrnoException;
|
|
437
|
-
|
|
438
|
-
export declare const isMutant: (value: unknown) => value is Mutant;
|
|
439
|
-
|
|
440
|
-
export declare interface KilledMutantRunResult {
|
|
441
|
-
readonly status: 'killed';
|
|
442
|
-
readonly killedBy: readonly string[];
|
|
443
|
-
readonly failureMessage: string;
|
|
444
|
-
readonly nrOfTests: number;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Known keys filters out the index signature from the keys of a type
|
|
449
|
-
* @see https://stackoverflow.com/questions/51465182/typescript-remove-index-signature-using-mapped-types
|
|
450
|
-
*/
|
|
451
|
-
export declare type KnownKeys<T> = keyof { [P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; };
|
|
452
|
-
|
|
453
|
-
export declare type Location = typeof LocationSchema.Type;
|
|
454
|
-
|
|
455
|
-
export declare const LocationSchema: S.Struct<{
|
|
456
|
-
readonly start: S.Struct<{
|
|
457
|
-
readonly line: S.Finite;
|
|
458
|
-
readonly column: S.Finite;
|
|
459
|
-
}>;
|
|
460
|
-
readonly end: S.Struct<{
|
|
461
|
-
readonly line: S.Finite;
|
|
462
|
-
readonly column: S.Finite;
|
|
463
|
-
}>;
|
|
464
|
-
}>;
|
|
465
|
-
|
|
466
|
-
declare const LogLevel: S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>;
|
|
467
|
-
|
|
468
|
-
/** The generated module exported these as TypeScript types; consumers still name them that way. */
|
|
469
|
-
declare type LogLevel = typeof LogLevel.Type;
|
|
470
|
-
export { LogLevel }
|
|
471
|
-
export { LogLevel as LogLevelType }
|
|
472
|
-
|
|
473
|
-
export declare type MergedPluginServices = Checker & Ignorer & TestRunner;
|
|
474
|
-
|
|
475
|
-
export declare type Metrics = typeof MetricsSchema.Type;
|
|
476
|
-
|
|
477
|
-
export declare interface MetricsResult {
|
|
478
|
-
readonly name: string;
|
|
479
|
-
readonly metrics: Metrics;
|
|
480
|
-
readonly childResults: readonly MetricsResult[];
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export declare const MetricsResultSchema: S.Struct<{
|
|
484
|
-
readonly name: S.String;
|
|
485
|
-
readonly metrics: S.Struct<{
|
|
486
|
-
readonly pending: S.Finite;
|
|
487
|
-
readonly killed: S.Finite;
|
|
488
|
-
readonly timeout: S.Finite;
|
|
489
|
-
readonly survived: S.Finite;
|
|
490
|
-
readonly noCoverage: S.Finite;
|
|
491
|
-
readonly runtimeErrors: S.Finite;
|
|
492
|
-
readonly compileErrors: S.Finite;
|
|
493
|
-
readonly ignored: S.Finite;
|
|
494
|
-
readonly totalDetected: S.Finite;
|
|
495
|
-
readonly totalUndetected: S.Finite;
|
|
496
|
-
readonly totalInvalid: S.Finite;
|
|
497
|
-
readonly totalValid: S.Finite;
|
|
498
|
-
readonly totalMutants: S.Finite;
|
|
499
|
-
readonly totalCovered: S.Finite;
|
|
500
|
-
readonly mutationScore: S.Finite;
|
|
501
|
-
readonly mutationScoreBasedOnCoveredCode: S.Finite;
|
|
502
|
-
}>;
|
|
503
|
-
readonly childResults: S.$Array<S.suspend<S.Codec<MetricsResult, MetricsResult, never, never>>>;
|
|
504
|
-
}>;
|
|
505
|
-
|
|
506
|
-
export declare const MetricsSchema: S.Struct<{
|
|
507
|
-
readonly pending: S.Finite;
|
|
508
|
-
readonly killed: S.Finite;
|
|
509
|
-
readonly timeout: S.Finite;
|
|
510
|
-
readonly survived: S.Finite;
|
|
511
|
-
readonly noCoverage: S.Finite;
|
|
512
|
-
readonly runtimeErrors: S.Finite;
|
|
513
|
-
readonly compileErrors: S.Finite;
|
|
514
|
-
readonly ignored: S.Finite;
|
|
515
|
-
readonly totalDetected: S.Finite;
|
|
516
|
-
readonly totalUndetected: S.Finite;
|
|
517
|
-
readonly totalInvalid: S.Finite;
|
|
518
|
-
readonly totalValid: S.Finite;
|
|
519
|
-
readonly totalMutants: S.Finite;
|
|
520
|
-
readonly totalCovered: S.Finite;
|
|
521
|
-
readonly mutationScore: S.Finite;
|
|
522
|
-
readonly mutationScoreBasedOnCoveredCode: S.Finite;
|
|
523
|
-
}>;
|
|
524
|
-
|
|
525
|
-
export declare const ModeSignal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
526
|
-
|
|
527
|
-
export declare type ModeSignal = typeof ModeSignal.Type;
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Port over the host module loader, shaped as the subset of `node:module`
|
|
531
|
-
* feature code may use: `createRequire` and `isBuiltin`. Resolving a
|
|
532
|
-
* specifier against a project directory, importing a plugin, and asking
|
|
533
|
-
* whether a name is a builtin all go through this one tag; no feature module
|
|
534
|
-
* touches the host module API. The Node implementation ships in the
|
|
535
|
-
* composition-root package (`@systemfsoftware/stryker-js-cli`); tests that do
|
|
536
|
-
* not need real plugin resolution substitute a layer returning fixed paths.
|
|
537
|
-
*
|
|
538
|
-
* @since 2.0.0
|
|
539
|
-
*/
|
|
540
|
-
export declare class Module extends Module_base {}
|
|
541
|
-
|
|
542
|
-
declare const Module_base: Context.ServiceClass<Module, "@systemfsoftware/stryker-js/Module", {
|
|
543
|
-
readonly createRequire: (filename: string | URL) => ModuleRequire;
|
|
544
|
-
readonly isBuiltin: (moduleName: string) => boolean;
|
|
545
|
-
}>;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* The subset of `node:module`'s `createRequire` result this port certifies: a
|
|
549
|
-
* require function bound to one path, plus its resolution. Calling it loads
|
|
550
|
-
* the specifier exactly as a module evaluated next to that path would.
|
|
551
|
-
*/
|
|
552
|
-
export declare interface ModuleRequire {
|
|
553
|
-
(request: string): unknown;
|
|
554
|
-
resolve(request: string, options?: {
|
|
555
|
-
readonly paths?: readonly string[];
|
|
556
|
-
}): string;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
export declare class Mutant extends Mutant_base {}
|
|
560
|
-
|
|
561
|
-
declare const Mutant_base: S.Class<Mutant, S.TaggedStruct<"Mutant", {
|
|
562
|
-
readonly id: S.NonEmptyString;
|
|
563
|
-
readonly fileName: S.NonEmptyString;
|
|
564
|
-
readonly mutatorName: S.NonEmptyString;
|
|
565
|
-
readonly replacement: S.String;
|
|
566
|
-
readonly location: S.Struct<{
|
|
567
|
-
readonly start: S.Struct<{
|
|
568
|
-
readonly line: S.Finite;
|
|
569
|
-
readonly column: S.Finite;
|
|
570
|
-
}>;
|
|
571
|
-
readonly end: S.Struct<{
|
|
572
|
-
readonly line: S.Finite;
|
|
573
|
-
readonly column: S.Finite;
|
|
574
|
-
}>;
|
|
575
|
-
}>;
|
|
576
|
-
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
577
|
-
readonly statusReason: S.optional<S.String>;
|
|
578
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
579
|
-
readonly static: S.optional<S.Boolean>;
|
|
580
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
581
|
-
readonly description: S.optional<S.String>;
|
|
582
|
-
}>, {}>;
|
|
583
|
-
|
|
584
|
-
export declare type MutantActivation = 'runtime' | 'static';
|
|
585
|
-
|
|
586
|
-
export declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
|
|
587
|
-
|
|
588
|
-
export declare interface MutantCoverage {
|
|
589
|
-
readonly perTest: Record<string, Record<string, number>>;
|
|
590
|
-
readonly static: Record<string, number>;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export declare const MutantCoverageSchema: S.Struct<{
|
|
594
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
595
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
596
|
-
}>;
|
|
597
|
-
|
|
598
|
-
export declare type MutantResult = typeof MutantResultSchema.Type;
|
|
599
|
-
|
|
600
|
-
export declare const MutantResultSchema: S.Struct<{
|
|
601
|
-
readonly id: S.String;
|
|
602
|
-
readonly mutatorName: S.String;
|
|
603
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
604
|
-
readonly location: S.Struct<{
|
|
605
|
-
readonly start: S.Struct<{
|
|
606
|
-
readonly line: S.Finite;
|
|
607
|
-
readonly column: S.Finite;
|
|
608
|
-
}>;
|
|
609
|
-
readonly end: S.Struct<{
|
|
610
|
-
readonly line: S.Finite;
|
|
611
|
-
readonly column: S.Finite;
|
|
612
|
-
}>;
|
|
613
|
-
}>;
|
|
614
|
-
readonly replacement: S.optional<S.String>;
|
|
615
|
-
readonly description: S.optional<S.String>;
|
|
616
|
-
readonly statusReason: S.optional<S.String>;
|
|
617
|
-
readonly static: S.optional<S.Boolean>;
|
|
618
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
619
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
620
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
621
|
-
readonly duration: S.optional<S.Finite>;
|
|
622
|
-
}>;
|
|
623
|
-
|
|
624
|
-
export declare interface MutantRunOptions extends RunOptions {
|
|
625
|
-
readonly testFilter?: readonly string[];
|
|
626
|
-
readonly hitLimit?: number;
|
|
627
|
-
readonly activeMutant: Mutant;
|
|
628
|
-
readonly sandboxFileName: string;
|
|
629
|
-
readonly mutantActivation: MutantActivation;
|
|
630
|
-
readonly reloadEnvironment: boolean;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
export declare const MutantRunOptionsSchema: S.Struct<{
|
|
634
|
-
readonly timeout: S.Finite;
|
|
635
|
-
readonly disableBail: S.Boolean;
|
|
636
|
-
readonly activeMutant: typeof Mutant;
|
|
637
|
-
readonly sandboxFileName: S.String;
|
|
638
|
-
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
639
|
-
readonly reloadEnvironment: S.Boolean;
|
|
640
|
-
readonly testFilter: S.optionalKey<S.$Array<S.String>>;
|
|
641
|
-
readonly hitLimit: S.optionalKey<S.Finite>;
|
|
642
|
-
}>;
|
|
643
|
-
|
|
644
|
-
export declare type MutantRunPlan = RunPlan;
|
|
645
|
-
|
|
646
|
-
export declare type MutantRunResult = ErrorMutantRunResult | KilledMutantRunResult | SurvivedMutantRunResult | TimeoutMutantRunResult;
|
|
375
|
+
declare class IdGenerator extends IdGenerator_base {}
|
|
647
376
|
|
|
648
|
-
|
|
649
|
-
readonly status: S.Literal<"killed">;
|
|
650
|
-
readonly killedBy: S.$Array<S.String>;
|
|
651
|
-
readonly failureMessage: S.String;
|
|
652
|
-
readonly nrOfTests: S.Finite;
|
|
653
|
-
}>, S.Struct<{
|
|
654
|
-
readonly status: S.Literal<"survived">;
|
|
655
|
-
readonly nrOfTests: S.Finite;
|
|
656
|
-
}>, S.Struct<{
|
|
657
|
-
readonly status: S.Literal<"timeout">;
|
|
658
|
-
readonly reason: S.optionalKey<S.String>;
|
|
659
|
-
}>, S.Struct<{
|
|
660
|
-
readonly status: S.Literal<"error">;
|
|
661
|
-
readonly errorMessage: S.String;
|
|
662
|
-
}>]>;
|
|
377
|
+
declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker/IdGenerator", IdGeneratorShape>;
|
|
663
378
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
export declare type MutantRunStatus = typeof MutantRunStatus.Type;
|
|
667
|
-
|
|
668
|
-
export declare type MutantStatus = typeof MutantStatusSchema.Type;
|
|
669
|
-
|
|
670
|
-
export declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
671
|
-
|
|
672
|
-
export declare type MutantTestCoverage = Mutant & {
|
|
673
|
-
readonly coveredBy: ReadonlyArray<string> | undefined;
|
|
674
|
-
readonly static: boolean | undefined;
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
export declare class MutantTested extends MutantTested_base {}
|
|
678
|
-
|
|
679
|
-
declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTested", {
|
|
680
|
-
readonly id: S.String;
|
|
681
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
682
|
-
readonly file: S.String;
|
|
683
|
-
readonly location: S.Struct<{
|
|
684
|
-
readonly start: S.Struct<{
|
|
685
|
-
readonly line: S.Finite;
|
|
686
|
-
readonly column: S.Finite;
|
|
687
|
-
}>;
|
|
688
|
-
readonly end: S.Struct<{
|
|
689
|
-
readonly line: S.Finite;
|
|
690
|
-
readonly column: S.Finite;
|
|
691
|
-
}>;
|
|
692
|
-
}>;
|
|
693
|
-
readonly mutator: S.String;
|
|
694
|
-
readonly replacement: S.NullOr<S.String>;
|
|
695
|
-
readonly completed: S.Finite;
|
|
696
|
-
readonly total: S.Finite;
|
|
697
|
-
}>, {}>;
|
|
698
|
-
|
|
699
|
-
export declare type MutateDescription = ReadonlyArray<MutationRange> | boolean;
|
|
700
|
-
|
|
701
|
-
export declare interface MutationRange {
|
|
702
|
-
readonly start: Position;
|
|
703
|
-
readonly end: Position;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
export declare interface MutationRunIo {
|
|
707
|
-
readonly read: (command: RunCommand) => Effect.Effect<unknown, S.SchemaError, RunIdentity>;
|
|
708
|
-
readonly write: (output: RunOutput) => Effect.Effect<void, S.SchemaError, RunIdentity>;
|
|
379
|
+
declare interface IdGeneratorShape {
|
|
380
|
+
readonly next: Effect.Effect<number>;
|
|
709
381
|
}
|
|
710
382
|
|
|
711
|
-
export declare
|
|
712
|
-
|
|
713
|
-
declare const MutationRunPlan_base: S.Class<MutationRunPlan, S.TaggedStruct<"MutationRunPlan", {
|
|
714
|
-
readonly mutatePatterns: S.$Array<S.String>;
|
|
715
|
-
readonly mutatorNames: S.$Array<S.String>;
|
|
716
|
-
}>, {}>;
|
|
383
|
+
export declare type Immutable<T> = T extends ImmutablePrimitive ? T : T extends Array<infer U> ? ReadonlyArray<Immutable<U>> : T extends Map<infer K, infer V> ? ReadonlyMap<Immutable<K>, Immutable<V>> : T extends Set<infer M> ? ReadonlySet<Immutable<M>> : T extends RegExp ? Readonly<RegExp> : { readonly [K in keyof T]: Immutable<T[K]>; };
|
|
717
384
|
|
|
718
|
-
|
|
385
|
+
declare type ImmutablePrimitive = Primitive | ((...args: never[]) => unknown);
|
|
719
386
|
|
|
720
|
-
export declare const
|
|
721
|
-
readonly
|
|
722
|
-
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
723
|
-
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
387
|
+
export declare const ImportedModuleSchema: S.Struct<{
|
|
388
|
+
readonly default: S.optional<S.Unknown>;
|
|
724
389
|
}>;
|
|
725
390
|
|
|
726
|
-
export declare
|
|
727
|
-
|
|
728
|
-
declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
|
|
729
|
-
readonly total: S.Finite;
|
|
730
|
-
readonly plans: S.$Array<S.Struct<{
|
|
731
|
-
readonly mutantId: S.String;
|
|
732
|
-
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
733
|
-
readonly netTime: S.Finite;
|
|
734
|
-
readonly reloadEnvironment: S.Boolean;
|
|
735
|
-
}>>;
|
|
736
|
-
}>, {}>;
|
|
737
|
-
|
|
738
|
-
export declare class MutationTestReportReady extends MutationTestReportReady_base {}
|
|
739
|
-
|
|
740
|
-
declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.TaggedStruct<"mutationTestReportReady", {
|
|
741
|
-
readonly report: S.Struct<{
|
|
742
|
-
readonly schemaVersion: S.String;
|
|
743
|
-
readonly files: S.$Record<S.String, S.Struct<{
|
|
744
|
-
readonly language: S.String;
|
|
745
|
-
readonly source: S.String;
|
|
746
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
747
|
-
readonly id: S.String;
|
|
748
|
-
readonly mutatorName: S.String;
|
|
749
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
750
|
-
readonly location: S.Struct<{
|
|
751
|
-
readonly start: S.Struct<{
|
|
752
|
-
readonly line: S.Finite;
|
|
753
|
-
readonly column: S.Finite;
|
|
754
|
-
}>;
|
|
755
|
-
readonly end: S.Struct<{
|
|
756
|
-
readonly line: S.Finite;
|
|
757
|
-
readonly column: S.Finite;
|
|
758
|
-
}>;
|
|
759
|
-
}>;
|
|
760
|
-
readonly replacement: S.optional<S.String>;
|
|
761
|
-
readonly description: S.optional<S.String>;
|
|
762
|
-
readonly statusReason: S.optional<S.String>;
|
|
763
|
-
readonly static: S.optional<S.Boolean>;
|
|
764
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
765
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
766
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
767
|
-
readonly duration: S.optional<S.Finite>;
|
|
768
|
-
}>>;
|
|
769
|
-
}>>;
|
|
770
|
-
readonly thresholds: S.Struct<{
|
|
771
|
-
readonly high: S.Finite;
|
|
772
|
-
readonly low: S.Finite;
|
|
773
|
-
}>;
|
|
774
|
-
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
775
|
-
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
776
|
-
readonly source: S.optional<S.String>;
|
|
777
|
-
readonly tests: S.$Array<S.Struct<{
|
|
778
|
-
readonly id: S.String;
|
|
779
|
-
readonly name: S.String;
|
|
780
|
-
readonly location: S.optional<S.Struct<{
|
|
781
|
-
readonly start: S.Struct<{
|
|
782
|
-
readonly line: S.Finite;
|
|
783
|
-
readonly column: S.Finite;
|
|
784
|
-
}>;
|
|
785
|
-
readonly end: S.optional<S.Struct<{
|
|
786
|
-
readonly line: S.Finite;
|
|
787
|
-
readonly column: S.Finite;
|
|
788
|
-
}>>;
|
|
789
|
-
}>>;
|
|
790
|
-
}>>;
|
|
791
|
-
}>>>;
|
|
792
|
-
readonly projectRoot: S.optional<S.String>;
|
|
793
|
-
readonly framework: S.optional<S.Struct<{
|
|
794
|
-
readonly name: S.String;
|
|
795
|
-
readonly version: S.optional<S.String>;
|
|
796
|
-
readonly branding: S.optional<S.Struct<{
|
|
797
|
-
readonly homepageUrl: S.String;
|
|
798
|
-
readonly imageUrl: S.optional<S.String>;
|
|
799
|
-
}>>;
|
|
800
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
801
|
-
}>>;
|
|
802
|
-
}>;
|
|
803
|
-
readonly metrics: S.Struct<{
|
|
804
|
-
readonly name: S.String;
|
|
805
|
-
readonly metrics: S.Struct<{
|
|
806
|
-
readonly pending: S.Finite;
|
|
807
|
-
readonly killed: S.Finite;
|
|
808
|
-
readonly timeout: S.Finite;
|
|
809
|
-
readonly survived: S.Finite;
|
|
810
|
-
readonly noCoverage: S.Finite;
|
|
811
|
-
readonly runtimeErrors: S.Finite;
|
|
812
|
-
readonly compileErrors: S.Finite;
|
|
813
|
-
readonly ignored: S.Finite;
|
|
814
|
-
readonly totalDetected: S.Finite;
|
|
815
|
-
readonly totalUndetected: S.Finite;
|
|
816
|
-
readonly totalInvalid: S.Finite;
|
|
817
|
-
readonly totalValid: S.Finite;
|
|
818
|
-
readonly totalMutants: S.Finite;
|
|
819
|
-
readonly totalCovered: S.Finite;
|
|
820
|
-
readonly mutationScore: S.Finite;
|
|
821
|
-
readonly mutationScoreBasedOnCoveredCode: S.Finite;
|
|
822
|
-
}>;
|
|
823
|
-
readonly childResults: S.$Array<S.suspend<S.Codec<MetricsResult, MetricsResult, never, never>>>;
|
|
824
|
-
}>;
|
|
825
|
-
}>, {}>;
|
|
391
|
+
export declare function importModule(moduleName: string): Effect.Effect<unknown, StrykerError>;
|
|
826
392
|
|
|
827
|
-
export declare
|
|
828
|
-
|
|
829
|
-
export declare const MutationTestResultSchema: S.Struct<{
|
|
393
|
+
export declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
|
|
830
394
|
readonly schemaVersion: S.String;
|
|
395
|
+
readonly thresholds: S.Struct<{
|
|
396
|
+
readonly high: S.Finite;
|
|
397
|
+
readonly low: S.Finite;
|
|
398
|
+
}>;
|
|
831
399
|
readonly files: S.$Record<S.String, S.Struct<{
|
|
832
400
|
readonly language: S.String;
|
|
833
401
|
readonly source: S.String;
|
|
834
402
|
readonly mutants: S.$Array<S.Struct<{
|
|
835
403
|
readonly id: S.String;
|
|
836
404
|
readonly mutatorName: S.String;
|
|
837
|
-
readonly
|
|
405
|
+
readonly replacement: S.String;
|
|
838
406
|
readonly location: S.Struct<{
|
|
839
407
|
readonly start: S.Struct<{
|
|
840
408
|
readonly line: S.Finite;
|
|
@@ -845,21 +413,16 @@ export declare const MutationTestResultSchema: S.Struct<{
|
|
|
845
413
|
readonly column: S.Finite;
|
|
846
414
|
}>;
|
|
847
415
|
}>;
|
|
848
|
-
readonly
|
|
849
|
-
readonly description: S.optional<S.String>;
|
|
850
|
-
readonly statusReason: S.optional<S.String>;
|
|
851
|
-
readonly static: S.optional<S.Boolean>;
|
|
852
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
416
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "Timeout", "CompileError", "RuntimeError", "Ignored", "Pending"]>;
|
|
853
417
|
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
418
|
+
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
419
|
+
readonly static: S.optional<S.Boolean>;
|
|
420
|
+
readonly statusReason: S.optional<S.String>;
|
|
854
421
|
readonly testsCompleted: S.optional<S.Finite>;
|
|
422
|
+
readonly description: S.optional<S.String>;
|
|
855
423
|
readonly duration: S.optional<S.Finite>;
|
|
856
424
|
}>>;
|
|
857
425
|
}>>;
|
|
858
|
-
readonly thresholds: S.Struct<{
|
|
859
|
-
readonly high: S.Finite;
|
|
860
|
-
readonly low: S.Finite;
|
|
861
|
-
}>;
|
|
862
|
-
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
863
426
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
864
427
|
readonly source: S.optional<S.String>;
|
|
865
428
|
readonly tests: S.$Array<S.Struct<{
|
|
@@ -877,65 +440,92 @@ export declare const MutationTestResultSchema: S.Struct<{
|
|
|
877
440
|
}>>;
|
|
878
441
|
}>>;
|
|
879
442
|
}>>>;
|
|
880
|
-
|
|
881
|
-
readonly framework: S.optional<S.Struct<{
|
|
882
|
-
readonly name: S.String;
|
|
883
|
-
readonly version: S.optional<S.String>;
|
|
884
|
-
readonly branding: S.optional<S.Struct<{
|
|
885
|
-
readonly homepageUrl: S.String;
|
|
886
|
-
readonly imageUrl: S.optional<S.String>;
|
|
887
|
-
}>>;
|
|
888
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
889
|
-
}>>;
|
|
890
|
-
}>;
|
|
443
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
891
444
|
|
|
892
|
-
export declare
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
445
|
+
export declare const initialExtendsStepState: ExtendsStepState;
|
|
446
|
+
|
|
447
|
+
export declare interface InstrumentDone extends PrepareDone {
|
|
448
|
+
readonly mutants: readonly Mutant[];
|
|
449
|
+
readonly sandbox: SandboxHandle;
|
|
450
|
+
readonly concurrency: {
|
|
451
|
+
readonly testRunners: number;
|
|
452
|
+
readonly checkers: number;
|
|
453
|
+
};
|
|
900
454
|
}
|
|
901
455
|
|
|
902
|
-
export declare function
|
|
456
|
+
export declare function isActionableStatus(status: MutantStatus): boolean;
|
|
903
457
|
|
|
904
|
-
|
|
458
|
+
/** Whether a configured runner name selects this runner. */
|
|
459
|
+
export declare const isCommandRunner: (name: string) => name is 'command';
|
|
905
460
|
|
|
906
|
-
export declare
|
|
461
|
+
export declare function isModuleSpecifier(value: string): boolean;
|
|
907
462
|
|
|
908
|
-
export declare const
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
readonly column: S.Finite;
|
|
912
|
-
}>;
|
|
913
|
-
readonly end: S.optional<S.Struct<{
|
|
914
|
-
readonly line: S.Finite;
|
|
915
|
-
readonly column: S.Finite;
|
|
916
|
-
}>>;
|
|
917
|
-
}>;
|
|
463
|
+
export declare const isVmRunner: (name: string) => name is 'vm';
|
|
464
|
+
|
|
465
|
+
export declare function isWarningEnabled(warningType: KnownKeys<WarningOptions>, warningOptions: WarningOptions | boolean): boolean;
|
|
918
466
|
|
|
919
|
-
|
|
467
|
+
declare type KnownKeys<T> = keyof { [P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; };
|
|
920
468
|
|
|
921
|
-
export declare
|
|
469
|
+
export declare const loadConfigCell: typeof readConfig;
|
|
922
470
|
|
|
923
|
-
declare
|
|
471
|
+
declare interface LoadedPlugins {
|
|
472
|
+
readonly schemaContributions: readonly Record<string, unknown>[];
|
|
473
|
+
readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
|
|
474
|
+
readonly pluginModulePaths: readonly string[];
|
|
475
|
+
readonly pluginSources: readonly PluginSource[];
|
|
476
|
+
readonly ignorers: readonly Ignorer[];
|
|
477
|
+
}
|
|
924
478
|
|
|
925
|
-
declare
|
|
926
|
-
export { PackageManager }
|
|
927
|
-
export { PackageManager as PackageManagerType }
|
|
479
|
+
export declare const makeRunLayer: (env: RunEnvironmentShape, events?: Queue.Queue<RunEvent, Cause.Done>) => Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
928
480
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
export declare
|
|
481
|
+
export declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
482
|
+
|
|
483
|
+
export declare function matchesFile(pattern: boolean | string, fileName: string, pathService: Path.Path, allowHiddenFiles?: boolean): boolean;
|
|
484
|
+
|
|
485
|
+
export declare class MergeCommand extends MergeCommand_base {}
|
|
486
|
+
|
|
487
|
+
declare const MergeCommand_base: S.Class<MergeCommand, S.TaggedStruct<"MergeCommand", {
|
|
488
|
+
readonly base: S.$Record<S.String, S.Unknown>;
|
|
489
|
+
readonly overrides: S.$Record<S.String, S.Unknown>;
|
|
490
|
+
}>, {}>;
|
|
491
|
+
|
|
492
|
+
export declare function mergeConfigs(parent: PartialStrykerOptions, child: PartialStrykerOptions): PartialStrykerOptions;
|
|
493
|
+
|
|
494
|
+
export declare class MergeResult extends MergeResult_base {}
|
|
934
495
|
|
|
935
|
-
|
|
936
|
-
readonly
|
|
496
|
+
declare const MergeResult_base: S.Class<MergeResult, S.TaggedStruct<"MergeResult", {
|
|
497
|
+
readonly merged: S.$Record<S.String, S.Unknown>;
|
|
498
|
+
}>, {}>;
|
|
499
|
+
|
|
500
|
+
export declare type ModeSignal = 'flag' | 'env' | 'tty' | 'agent' | 'tool';
|
|
501
|
+
|
|
502
|
+
export declare const mutationTestCell: Cell.Cell<PrepareExecutorArgs, MutationTestDone, StageError, StageServices>;
|
|
503
|
+
|
|
504
|
+
export declare interface MutationTestDone {
|
|
505
|
+
readonly results: readonly RunMutantResult[];
|
|
506
|
+
readonly verdict: ExitClass | null;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export declare const optionsPath: (...path: string[]) => string;
|
|
510
|
+
|
|
511
|
+
export declare class OutOfMemoryError extends OutOfMemoryError_base {
|
|
512
|
+
readonly exitClass: 'RuntimeError';
|
|
937
513
|
}
|
|
938
514
|
|
|
515
|
+
declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
|
|
516
|
+
readonly pid: Schema.Int;
|
|
517
|
+
readonly exitCode: Schema.Int;
|
|
518
|
+
}>, YieldableError>;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Mode type vocabulary shared with the CLI package. Runtime resolution
|
|
522
|
+
* (`resolveMode`) and gate functions (`isProgressEnabled`, `isColorEnabled`)
|
|
523
|
+
* live in the CLI; the `ResolvedMode` fields (`mode`, `signal`,
|
|
524
|
+
* `stdoutIsTTY`) ride along in `VerdictEnvelope` (`verdict-envelope.ts`),
|
|
525
|
+
* so the types stay where the data does.
|
|
526
|
+
*/
|
|
527
|
+
export declare type OutputMode = 'human' | 'machine';
|
|
528
|
+
|
|
939
529
|
export declare class PhaseEntered extends PhaseEntered_base {}
|
|
940
530
|
|
|
941
531
|
declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
|
|
@@ -949,236 +539,145 @@ declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
|
|
|
949
539
|
readonly total: S.Finite;
|
|
950
540
|
}>, {}>;
|
|
951
541
|
|
|
952
|
-
|
|
542
|
+
declare type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
|
|
953
543
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
readonly configMutatePatterns: S.$Array<S.String>;
|
|
958
|
-
readonly configMutatorNames: S.$Array<S.String>;
|
|
959
|
-
readonly targetMutatePatterns: S.$Array<S.String>;
|
|
960
|
-
readonly availableMutators: S.$Array<S.String>;
|
|
961
|
-
}>, {}>;
|
|
544
|
+
declare type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
|
|
545
|
+
readonly kind: K;
|
|
546
|
+
}>;
|
|
962
547
|
|
|
963
|
-
|
|
548
|
+
declare type PluginKind = WorkerPluginKind | 'Evaluator';
|
|
964
549
|
|
|
965
|
-
|
|
550
|
+
declare type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
|
|
966
551
|
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
552
|
+
/**
|
|
553
|
+
* A test runner in a child process, whose calls can fail the way a child process
|
|
554
|
+
* fails.
|
|
555
|
+
*
|
|
556
|
+
* Wider than `TestRunnerService` on purpose. That port's error channel is
|
|
557
|
+
* `TestRunnerFailed`, which is right for a runner living in this process — but
|
|
558
|
+
* folding a crash into it erases the tag a pool retires a worker on, so
|
|
559
|
+
* `Pool.invalidate` could never fire and a dead worker would be handed out again.
|
|
560
|
+
* A `WorkerMethodError` is the runner genuinely failing and does become a
|
|
561
|
+
* `TestRunnerFailed`; a crash or an OOM is the worker dying, and stays itself.
|
|
562
|
+
*/
|
|
563
|
+
export declare interface PooledTestRunner {
|
|
564
|
+
readonly capabilities: Effect.Effect<TestRunnerCapabilities, PooledTestRunnerError>;
|
|
565
|
+
readonly init: Effect.Effect<void, PooledTestRunnerError>;
|
|
566
|
+
readonly dryRun: (options: DryRunOptions) => Effect.Effect<DryRunResult, PooledTestRunnerError>;
|
|
567
|
+
readonly mutantRun: (options: MutantRunOptions) => Effect.Effect<MutantRunResult, PooledTestRunnerError>;
|
|
972
568
|
}
|
|
973
569
|
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
export declare type PluginKind = typeof PluginKind.Type;
|
|
570
|
+
/** How a call on a pooled worker can fail. */
|
|
571
|
+
export declare type PooledTestRunnerError = TestRunnerFailed | ChildProcessCrashedError | OutOfMemoryError;
|
|
977
572
|
|
|
978
|
-
export declare
|
|
979
|
-
readonly
|
|
980
|
-
readonly
|
|
981
|
-
readonly
|
|
573
|
+
export declare interface PrepareDone {
|
|
574
|
+
readonly project: Project;
|
|
575
|
+
readonly loadedPlugins: LoadedPlugins;
|
|
576
|
+
readonly ignorers: readonly Ignorer[];
|
|
577
|
+
readonly options: StrykerOptions;
|
|
578
|
+
readonly temporaryDirectoryPath: string;
|
|
579
|
+
readonly reporterStage: ReporterStage;
|
|
982
580
|
}
|
|
983
581
|
|
|
984
|
-
declare
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}>, {}>;
|
|
582
|
+
export declare interface PrepareExecutorArgs {
|
|
583
|
+
cliOptions: PartialStrykerOptions;
|
|
584
|
+
targetMutatePatterns: string[] | undefined;
|
|
585
|
+
}
|
|
989
586
|
|
|
990
|
-
export declare
|
|
587
|
+
export declare type Primitive = boolean | number | string | null | undefined;
|
|
991
588
|
|
|
992
|
-
|
|
589
|
+
declare interface Project {
|
|
590
|
+
readonly fileDescriptions: FileDescriptions;
|
|
591
|
+
readonly incrementalReport: MutationTestResult | undefined;
|
|
592
|
+
readonly testFiles: readonly string[];
|
|
593
|
+
readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
|
|
594
|
+
readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
|
|
595
|
+
}
|
|
993
596
|
|
|
994
|
-
|
|
995
|
-
readonly kind: 'Reporter';
|
|
597
|
+
declare interface ProjectFile extends FileDescription {
|
|
996
598
|
readonly name: string;
|
|
997
|
-
readonly
|
|
599
|
+
readonly mutate: MutateDescription;
|
|
600
|
+
readonly content: string | undefined;
|
|
601
|
+
readonly originalContent: string | undefined;
|
|
998
602
|
}
|
|
999
603
|
|
|
1000
|
-
declare
|
|
1001
|
-
readonly kind: S.Literals<readonly ["Checker", "TestRunner", "Reporter", "Ignore", "Evaluator"]>;
|
|
1002
|
-
readonly name: S.String;
|
|
1003
|
-
readonly make: S.Unknown;
|
|
1004
|
-
}>, {}>;
|
|
1005
|
-
|
|
1006
|
-
export declare type Position = typeof PositionSchema.Type;
|
|
1007
|
-
|
|
1008
|
-
export declare const PositionSchema: S.Struct<{
|
|
1009
|
-
readonly line: S.Finite;
|
|
1010
|
-
readonly column: S.Finite;
|
|
1011
|
-
}>;
|
|
604
|
+
export declare function readConfig(cliOptions: PartialStrykerOptions, invocation: ConfigInvocation): Effect.Effect<StrykerOptions, ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError, FileSystem.FileSystem | Path.Path>;
|
|
1012
605
|
|
|
1013
|
-
export declare
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* Given a base type, allows type safe access to the name of a property.
|
|
1017
|
-
* @param prop - The property name
|
|
1018
|
-
*/
|
|
1019
|
-
export declare function propertyPath<T>(): PropertyPathOverloads<T>;
|
|
606
|
+
export declare class ReadConfigCommand extends ReadConfigCommand_base {}
|
|
1020
607
|
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
}
|
|
608
|
+
declare const ReadConfigCommand_base: S.Class<ReadConfigCommand, S.TaggedStruct<"ReadConfigCommand", {
|
|
609
|
+
readonly cliOptions: S.$Record<S.String, S.Unknown>;
|
|
610
|
+
readonly basePath: S.String;
|
|
611
|
+
}>, {}>;
|
|
1026
612
|
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
*
|
|
1030
|
-
* `Schema.schema.ts` declares every default, and a CLI that wants to
|
|
1031
|
-
* name one in a `--help` description must read it from here rather than type
|
|
1032
|
-
* the literal a second time: a restated default drifts the moment the schema
|
|
1033
|
-
* moves, and no gate compares a help string against a schema annotation.
|
|
1034
|
-
*
|
|
1035
|
-
* Only these four are here because only these four are rendered. A default
|
|
1036
|
-
* nobody prints has one declaration site already, which is the schema.
|
|
1037
|
-
*/
|
|
1038
|
-
export declare const RENDERED_OPTION_DEFAULTS: {
|
|
1039
|
-
readonly coverageAnalysis: 'perTest';
|
|
1040
|
-
readonly fileLogLevel: 'off';
|
|
1041
|
-
readonly logLevel: 'info';
|
|
1042
|
-
readonly tempDirName: '.stryker-tmp';
|
|
613
|
+
declare const ReadTag: {
|
|
614
|
+
readonly _tag: 'read';
|
|
1043
615
|
};
|
|
1044
616
|
|
|
1045
|
-
|
|
617
|
+
declare type ReadTag = typeof ReadTag;
|
|
1046
618
|
|
|
1047
|
-
|
|
619
|
+
declare const RefusedTag: {
|
|
620
|
+
readonly _tag: 'refused';
|
|
621
|
+
};
|
|
1048
622
|
|
|
1049
|
-
|
|
623
|
+
declare type RefusedTag = typeof RefusedTag;
|
|
1050
624
|
|
|
1051
|
-
export declare const
|
|
625
|
+
export declare const REPORTER_EVENT_BATCH_BOUND = 128;
|
|
1052
626
|
|
|
1053
|
-
|
|
627
|
+
/**
|
|
628
|
+
* An attached reporter stage, opaque at the engine boundary: the published
|
|
629
|
+
* phase types carry this handle so the attachment machinery (queues, fibers,
|
|
630
|
+
* the state latch) never reaches an adopter's compiler. Constructed only by
|
|
631
|
+
* `attachReporterFactories`.
|
|
632
|
+
*/
|
|
633
|
+
declare interface ReporterStage {
|
|
634
|
+
readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
|
|
635
|
+
}
|
|
1054
636
|
|
|
1055
|
-
|
|
637
|
+
declare const ReporterStageTypeId: unique symbol;
|
|
1056
638
|
|
|
1057
|
-
export declare
|
|
639
|
+
export declare type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof ReporterRpcs>, RpcClientError>;
|
|
1058
640
|
|
|
1059
|
-
declare const
|
|
1060
|
-
readonly cause: S.String;
|
|
1061
|
-
readonly event: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
1062
|
-
readonly reporterName: S.String;
|
|
1063
|
-
}>, YieldableError>;
|
|
641
|
+
export declare const reporterWorkerFactory: (client: ReporterWorkerClient) => ReporterFactory;
|
|
1064
642
|
|
|
1065
|
-
export declare interface
|
|
1066
|
-
readonly
|
|
1067
|
-
readonly
|
|
643
|
+
export declare interface ResolvedMode {
|
|
644
|
+
readonly mode: OutputMode;
|
|
645
|
+
readonly signal: ModeSignal;
|
|
646
|
+
readonly stdoutIsTTY: boolean;
|
|
1068
647
|
}
|
|
1069
648
|
|
|
1070
|
-
export declare
|
|
1071
|
-
|
|
1072
|
-
export declare const ReporterPlanDescriptorSchema: S.Struct<{
|
|
1073
|
-
readonly mutantId: S.String;
|
|
1074
|
-
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
1075
|
-
readonly netTime: S.Finite;
|
|
1076
|
-
readonly reloadEnvironment: S.Boolean;
|
|
1077
|
-
}>;
|
|
1078
|
-
|
|
1079
|
-
export declare const ReporterPlanKind: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
649
|
+
export declare function resolveExitCode(pending: Iterable<ExitClass>, signal: number | null): number;
|
|
1080
650
|
|
|
1081
|
-
export declare
|
|
651
|
+
export declare function resolveExtends(configFile: string, document: PartialStrykerOptions, configEnv: ConfigEnv): Effect.Effect<PartialStrykerOptions, ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError, Path.Path>;
|
|
1082
652
|
|
|
1083
|
-
|
|
653
|
+
declare const ResolveTag: {
|
|
654
|
+
readonly _tag: 'resolve';
|
|
655
|
+
};
|
|
1084
656
|
|
|
1085
|
-
|
|
657
|
+
declare type ResolveTag = typeof ResolveTag;
|
|
1086
658
|
|
|
1087
|
-
export declare
|
|
659
|
+
export declare const RUN_EVENTS_QUEUE_BOUND = 256;
|
|
1088
660
|
|
|
1089
|
-
declare
|
|
1090
|
-
readonly cliOptionsJson: S.String;
|
|
1091
|
-
readonly targetMutatePatterns: S.$Array<S.String>;
|
|
1092
|
-
}>, {}>;
|
|
661
|
+
export declare class RunEnvironment extends RunEnvironment_base {}
|
|
1093
662
|
|
|
1094
|
-
|
|
663
|
+
declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment", RunEnvironmentShape>;
|
|
1095
664
|
|
|
1096
|
-
declare
|
|
1097
|
-
readonly
|
|
665
|
+
export declare interface RunEnvironmentShape {
|
|
666
|
+
readonly runId: string;
|
|
667
|
+
readonly resolvedMode: ResolvedMode;
|
|
668
|
+
readonly runStartedAt: number;
|
|
669
|
+
readonly basePath: string;
|
|
670
|
+
readonly builtinReporters: Readonly<Record<string, ReporterFactory>>;
|
|
1098
671
|
readonly allowConsoleColors: boolean;
|
|
1099
|
-
|
|
1100
|
-
readonly checkers: readonly string[];
|
|
1101
|
-
readonly checkerNodeArgs: readonly string[];
|
|
1102
|
-
readonly concurrency?: string | number | undefined;
|
|
1103
|
-
readonly commandRunner: {
|
|
1104
|
-
readonly [x: string]: unknown;
|
|
1105
|
-
readonly command: string;
|
|
1106
|
-
};
|
|
1107
|
-
readonly coverageAnalysis: "all" | "off" | "perTest";
|
|
1108
|
-
readonly clearTextReporter: {
|
|
1109
|
-
readonly [x: string]: unknown;
|
|
1110
|
-
readonly allowColor: boolean;
|
|
1111
|
-
readonly allowEmojis: boolean;
|
|
1112
|
-
readonly logTests: boolean;
|
|
1113
|
-
readonly maxTestsToLog: number;
|
|
1114
|
-
readonly reportTests: boolean;
|
|
1115
|
-
readonly reportMutants: boolean;
|
|
1116
|
-
readonly reportScoreTable: boolean;
|
|
1117
|
-
readonly skipFull: boolean;
|
|
1118
|
-
};
|
|
1119
|
-
readonly dryRunOnly: boolean;
|
|
1120
|
-
readonly ignorePatterns: readonly string[];
|
|
1121
|
-
readonly ignoreStatic: boolean;
|
|
1122
|
-
readonly incremental: boolean;
|
|
1123
|
-
readonly incrementalFile: string;
|
|
1124
|
-
readonly progressStreamFile: string;
|
|
1125
|
-
readonly force: boolean;
|
|
1126
|
-
readonly fileLogLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
1127
|
-
readonly inPlace: boolean;
|
|
1128
|
-
readonly logLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
1129
|
-
readonly maxConcurrentTestRunners: number;
|
|
1130
|
-
readonly maxTestRunnerReuse: number;
|
|
1131
|
-
readonly mutate: readonly string[];
|
|
1132
|
-
readonly mutator: {
|
|
1133
|
-
readonly excludedMutations: readonly string[];
|
|
1134
|
-
};
|
|
1135
|
-
readonly packageManager?: "npm" | "pnpm" | "yarn" | undefined;
|
|
1136
|
-
readonly plugins: readonly string[];
|
|
1137
|
-
readonly appendPlugins: readonly string[];
|
|
1138
|
-
readonly reporters: readonly string[];
|
|
1139
|
-
readonly htmlReporter: {
|
|
1140
|
-
readonly fileName: string;
|
|
1141
|
-
};
|
|
1142
|
-
readonly jsonReporter: {
|
|
1143
|
-
readonly fileName: string;
|
|
1144
|
-
};
|
|
1145
|
-
readonly disableTypeChecks: string | boolean;
|
|
1146
|
-
readonly symlinkNodeModules: boolean;
|
|
1147
|
-
readonly tempDirName: string;
|
|
1148
|
-
readonly cleanTempDir: "always" | boolean;
|
|
1149
|
-
readonly testRunner: string;
|
|
1150
|
-
readonly testRunnerNodeArgs: readonly string[];
|
|
1151
|
-
readonly thresholds: {
|
|
1152
|
-
readonly high: number;
|
|
1153
|
-
readonly low: number;
|
|
1154
|
-
readonly break: number | null;
|
|
1155
|
-
};
|
|
1156
|
-
readonly timeoutFactor: number;
|
|
1157
|
-
readonly timeoutMS: number;
|
|
1158
|
-
readonly dryRunTimeoutMinutes: number;
|
|
1159
|
-
readonly tsconfigFile: string;
|
|
1160
|
-
readonly warnings: boolean | {
|
|
1161
|
-
readonly [x: string]: unknown;
|
|
1162
|
-
readonly unknownOptions: boolean;
|
|
1163
|
-
readonly preprocessorErrors: boolean;
|
|
1164
|
-
readonly unserializableOptions: boolean;
|
|
1165
|
-
readonly slow: boolean;
|
|
1166
|
-
};
|
|
1167
|
-
readonly disableBail: boolean;
|
|
1168
|
-
readonly allowEmpty: boolean;
|
|
1169
|
-
readonly ignorers: readonly string[];
|
|
1170
|
-
readonly testFiles: readonly string[];
|
|
1171
|
-
}>;
|
|
672
|
+
}
|
|
1172
673
|
|
|
1173
|
-
declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
|
|
674
|
+
export declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
|
|
1174
675
|
|
|
1175
|
-
declare type RunEvent = typeof RunEvent.Type;
|
|
1176
|
-
export { RunEvent }
|
|
1177
|
-
export { RunEvent as RunEventType }
|
|
676
|
+
export declare type RunEvent = typeof RunEvent.Type;
|
|
1178
677
|
|
|
1179
678
|
export declare class RunEvents extends RunEvents_base {}
|
|
1180
679
|
|
|
1181
|
-
declare const RunEvents_base: Context.ServiceClass<RunEvents, "
|
|
680
|
+
declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/RunEvents", Queue.Queue<Heartbeat | HelpRendered | PhaseEntered | PlanKnown | RunFailed | RunMutantTested | RunStarted | VerdictReached, Cause.Done<void>>>;
|
|
1182
681
|
|
|
1183
682
|
export declare class RunFailed extends RunFailed_base {}
|
|
1184
683
|
|
|
@@ -1191,22 +690,13 @@ declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
|
|
|
1191
690
|
|
|
1192
691
|
export declare class RunIdentity extends RunIdentity_base {}
|
|
1193
692
|
|
|
1194
|
-
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "
|
|
693
|
+
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/RunEvents/RunIdentity", RunIdentityShape>;
|
|
1195
694
|
|
|
1196
695
|
export declare interface RunIdentityShape {
|
|
1197
696
|
readonly runId: string;
|
|
1198
697
|
readonly basePath: string;
|
|
1199
698
|
}
|
|
1200
699
|
|
|
1201
|
-
export declare type RunMutantResult = Mutant & {
|
|
1202
|
-
readonly status: MutantStatus;
|
|
1203
|
-
readonly statusReason?: string | undefined;
|
|
1204
|
-
readonly testsCompleted?: number | undefined;
|
|
1205
|
-
readonly killedBy?: readonly string[] | undefined;
|
|
1206
|
-
readonly coveredBy?: readonly string[] | undefined;
|
|
1207
|
-
readonly static?: boolean | undefined;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
700
|
export declare class RunMutantTested extends RunMutantTested_base {}
|
|
1211
701
|
|
|
1212
702
|
declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mutant", {
|
|
@@ -1229,30 +719,11 @@ declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mut
|
|
|
1229
719
|
readonly total: S.Finite;
|
|
1230
720
|
}>, {}>;
|
|
1231
721
|
|
|
1232
|
-
export declare const runMutationTest: (io: MutationRunIo, command: RunCommand) => Effect.Effect<void, S.SchemaError, RunIdentity>;
|
|
1233
|
-
|
|
1234
|
-
export declare interface RunOptions {
|
|
1235
|
-
readonly timeout: number;
|
|
1236
|
-
readonly disableBail: boolean;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
export declare class RunOutput extends RunOutput_base {}
|
|
1240
|
-
|
|
1241
|
-
declare const RunOutput_base: S.Class<RunOutput, S.TaggedStruct<"RunOutput", {
|
|
1242
|
-
readonly verdictJson: S.String;
|
|
1243
|
-
readonly exitCode: S.Finite;
|
|
1244
|
-
}>, {}>;
|
|
1245
|
-
|
|
1246
722
|
export declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
1247
723
|
|
|
1248
724
|
export declare type RunPhase = typeof RunPhase.Type;
|
|
1249
725
|
|
|
1250
|
-
export declare
|
|
1251
|
-
readonly plan: 'Run';
|
|
1252
|
-
readonly mutant: Mutant;
|
|
1253
|
-
readonly runOptions: MutantRunOptions;
|
|
1254
|
-
readonly netTime: number;
|
|
1255
|
-
}
|
|
726
|
+
export declare type RunStageServices = RunEnvironment | RunEvents | IdGenerator | Scope.Scope;
|
|
1256
727
|
|
|
1257
728
|
export declare class RunStarted extends RunStarted_base {}
|
|
1258
729
|
|
|
@@ -1265,298 +736,136 @@ declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
|
|
|
1265
736
|
|
|
1266
737
|
export declare type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
|
|
1267
738
|
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
readonly
|
|
1272
|
-
readonly overhead: S.Finite;
|
|
1273
|
-
}>;
|
|
1274
|
-
|
|
1275
|
-
export declare class SandboxDirectory extends SandboxDirectory_base {}
|
|
1276
|
-
|
|
1277
|
-
declare const SandboxDirectory_base: Context.ServiceClass<SandboxDirectory, "~@systemfsoftware/stryker-js/SandboxDirectory", string>;
|
|
1278
|
-
|
|
1279
|
-
export declare interface SelectedReporterFactory {
|
|
1280
|
-
readonly name: string;
|
|
1281
|
-
readonly make: ReporterFactory;
|
|
739
|
+
declare interface SandboxHandle {
|
|
740
|
+
readonly workingDirectory: string;
|
|
741
|
+
readonly sandboxFileFor: (fileName: string) => string;
|
|
742
|
+
readonly originalFileFor: (sandboxFileName: string) => string;
|
|
1282
743
|
}
|
|
1283
744
|
|
|
1284
|
-
export declare
|
|
1285
|
-
|
|
1286
|
-
declare const Shadowing_base: S.Class<Shadowing, S.TaggedStruct<"Shadowing", {
|
|
1287
|
-
readonly kind: S.String;
|
|
1288
|
-
readonly name: S.String;
|
|
1289
|
-
readonly shadowedIndex: S.Finite;
|
|
1290
|
-
readonly winnerIndex: S.Finite;
|
|
1291
|
-
}>, {}>;
|
|
1292
|
-
|
|
1293
|
-
export declare const shouldKeepTempDir: (exit: Exit.Exit<void, unknown>, cleanTempDir: 'always' | boolean) => boolean;
|
|
745
|
+
export declare const shouldKeepTempDir: (exit: Exit.Exit<unknown, unknown>, cleanTempDir: 'always' | boolean) => boolean;
|
|
1294
746
|
|
|
1295
|
-
export declare interface
|
|
1296
|
-
readonly
|
|
747
|
+
export declare interface SpawnedSocketWorker {
|
|
748
|
+
readonly pid: number;
|
|
749
|
+
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
750
|
+
readonly exited: Effect.Effect<never, WorkerExit>;
|
|
1297
751
|
}
|
|
1298
752
|
|
|
1299
|
-
|
|
1300
|
-
* The JSON Schema document derived from `StrykerOptionsSchema`, self-contained.
|
|
1301
|
-
*
|
|
1302
|
-
* It lives beside the schema module rather than inside it because it is a *use*
|
|
1303
|
-
* of that schema, not a declaration of one: `S.toJsonSchemaDocument` consumes a
|
|
1304
|
-
* schema and returns a plain document. Keeping uses out of a `*.schema.ts` is
|
|
1305
|
-
* what lets a tool read every exported schema in a package and trust that each
|
|
1306
|
-
* one is a schema - the generated law suite does exactly that, and a document
|
|
1307
|
-
* handed to `toEncoded` takes the whole suite down with it.
|
|
1308
|
-
*/
|
|
1309
|
-
export declare const strykerCoreSchema: Record<string, unknown>;
|
|
1310
|
-
|
|
1311
|
-
/** The decoded type: every defaulted option is present. */
|
|
1312
|
-
export declare type StrykerOptions = S.Schema.Type<typeof StrykerOptionsSchema>;
|
|
1313
|
-
|
|
1314
|
-
export declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
1315
|
-
readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1316
|
-
readonly buildCommand: S.optional<S.String>;
|
|
1317
|
-
readonly checkers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1318
|
-
readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1319
|
-
readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
|
|
1320
|
-
readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
1321
|
-
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
1322
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
1323
|
-
readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
|
|
1324
|
-
readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
1325
|
-
readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1326
|
-
readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1327
|
-
readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1328
|
-
readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1329
|
-
readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1330
|
-
readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1331
|
-
readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1332
|
-
readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1333
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
1334
|
-
readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1335
|
-
readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1336
|
-
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1337
|
-
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1338
|
-
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
1339
|
-
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
1340
|
-
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1341
|
-
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
1342
|
-
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1343
|
-
readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
1344
|
-
readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1345
|
-
readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1346
|
-
readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1347
|
-
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
1348
|
-
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1349
|
-
}>, never>;
|
|
1350
|
-
readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
1351
|
-
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1352
|
-
readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1353
|
-
readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1354
|
-
readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
1355
|
-
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
1356
|
-
}>, never>;
|
|
1357
|
-
readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
1358
|
-
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
1359
|
-
}>, never>;
|
|
1360
|
-
readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
|
|
1361
|
-
readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1362
|
-
readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
|
|
1363
|
-
readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
|
|
1364
|
-
readonly testRunner: S.withDecodingDefaultKey<S.String, never>;
|
|
1365
|
-
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1366
|
-
readonly thresholds: S.withDecodingDefaultKey<S.Struct<{
|
|
1367
|
-
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1368
|
-
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1369
|
-
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
1370
|
-
}>, never>;
|
|
1371
|
-
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1372
|
-
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1373
|
-
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1374
|
-
readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
|
|
1375
|
-
readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
|
|
1376
|
-
readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1377
|
-
readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1378
|
-
readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1379
|
-
readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1380
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
|
|
1381
|
-
readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1382
|
-
readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
1383
|
-
readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1384
|
-
readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1385
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* Creates a URL to the page where a consumer can report a bug against this
|
|
1389
|
-
* project.
|
|
1390
|
-
*
|
|
1391
|
-
* The tracker is ours. The ported original addressed the upstream StrykerJS
|
|
1392
|
-
* repository, along with its label and issue-template parameters, so every bug
|
|
1393
|
-
* a consumer filed from a Stryker run arrived at a project that does not own
|
|
1394
|
-
* this code (`REPO-O1`) and prefilled a template that does not exist here.
|
|
1395
|
-
*
|
|
1396
|
-
* @param titleSuggestion - The title to be prefilled in.
|
|
1397
|
-
*/
|
|
1398
|
-
export declare function strykerReportBugUrl(titleSuggestion: string): string;
|
|
753
|
+
export declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
1399
754
|
|
|
1400
|
-
export declare interface
|
|
1401
|
-
readonly
|
|
755
|
+
export declare interface SpawnReporterWorkerParams {
|
|
756
|
+
readonly entrypoint: string;
|
|
757
|
+
readonly projectBasePath: string;
|
|
758
|
+
readonly execArgv: readonly string[];
|
|
759
|
+
readonly options: StrykerOptions;
|
|
760
|
+
readonly tempDirPrefix: string;
|
|
1402
761
|
}
|
|
1403
762
|
|
|
1404
|
-
export declare
|
|
1405
|
-
readonly
|
|
1406
|
-
|
|
763
|
+
export declare class StageError extends StageError_base {
|
|
764
|
+
readonly [TypeId]: "~stryker/mutation-run/StageError";
|
|
765
|
+
get exitClass(): ExitClass;
|
|
766
|
+
get message(): string;
|
|
1407
767
|
}
|
|
1408
768
|
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
readonly
|
|
1413
|
-
readonly
|
|
1414
|
-
|
|
1415
|
-
readonly start: S.Struct<{
|
|
1416
|
-
readonly line: S.Finite;
|
|
1417
|
-
readonly column: S.Finite;
|
|
1418
|
-
}>;
|
|
1419
|
-
readonly end: S.optional<S.Struct<{
|
|
1420
|
-
readonly line: S.Finite;
|
|
1421
|
-
readonly column: S.Finite;
|
|
1422
|
-
}>>;
|
|
1423
|
-
}>>;
|
|
1424
|
-
}>;
|
|
1425
|
-
|
|
1426
|
-
export declare type TestFile = typeof TestFileSchema.Type;
|
|
1427
|
-
|
|
1428
|
-
export declare type TestFileDefinitionDictionary = typeof TestFileDefinitionDictionarySchema.Type;
|
|
769
|
+
declare const StageError_base: S.Class<StageError, S.TaggedStruct<"StageError", {
|
|
770
|
+
readonly stage: S.Literals<readonly ["prepare", "instrument", "dryRun", "dryRunNoTests", "mutationTest"]>;
|
|
771
|
+
readonly reason: S.String;
|
|
772
|
+
readonly cause: S.optional<S.Defect>;
|
|
773
|
+
readonly command: S.optional<S.String>;
|
|
774
|
+
}>, YieldableError>;
|
|
1429
775
|
|
|
1430
|
-
|
|
1431
|
-
readonly source: S.optional<S.String>;
|
|
1432
|
-
readonly tests: S.$Array<S.Struct<{
|
|
1433
|
-
readonly id: S.String;
|
|
1434
|
-
readonly name: S.String;
|
|
1435
|
-
readonly location: S.optional<S.Struct<{
|
|
1436
|
-
readonly start: S.Struct<{
|
|
1437
|
-
readonly line: S.Finite;
|
|
1438
|
-
readonly column: S.Finite;
|
|
1439
|
-
}>;
|
|
1440
|
-
readonly end: S.optional<S.Struct<{
|
|
1441
|
-
readonly line: S.Finite;
|
|
1442
|
-
readonly column: S.Finite;
|
|
1443
|
-
}>>;
|
|
1444
|
-
}>>;
|
|
1445
|
-
}>>;
|
|
1446
|
-
}>>;
|
|
776
|
+
declare type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | Path.Path | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
|
|
1447
777
|
|
|
1448
|
-
export declare const
|
|
1449
|
-
readonly source: S.optional<S.String>;
|
|
1450
|
-
readonly tests: S.$Array<S.Struct<{
|
|
1451
|
-
readonly id: S.String;
|
|
1452
|
-
readonly name: S.String;
|
|
1453
|
-
readonly location: S.optional<S.Struct<{
|
|
1454
|
-
readonly start: S.Struct<{
|
|
1455
|
-
readonly line: S.Finite;
|
|
1456
|
-
readonly column: S.Finite;
|
|
1457
|
-
}>;
|
|
1458
|
-
readonly end: S.optional<S.Struct<{
|
|
1459
|
-
readonly line: S.Finite;
|
|
1460
|
-
readonly column: S.Finite;
|
|
1461
|
-
}>>;
|
|
1462
|
-
}>>;
|
|
1463
|
-
}>>;
|
|
1464
|
-
}>;
|
|
778
|
+
export declare const strykerCell: (options: PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Effect.Effect<MutationTestDone, StageError | PlatformError, FileSystem.FileSystem | Path.Path | Stdio.Stdio>;
|
|
1465
779
|
|
|
1466
|
-
export declare
|
|
1467
|
-
readonly testFiles?: readonly string[];
|
|
1468
|
-
}): boolean;
|
|
780
|
+
export declare class StrykerError extends StrykerError_base {}
|
|
1469
781
|
|
|
1470
|
-
|
|
782
|
+
declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
|
|
783
|
+
readonly message: Schema.String;
|
|
784
|
+
readonly cause: Schema.optional<Schema.Unknown>;
|
|
785
|
+
}>, YieldableError>;
|
|
1471
786
|
|
|
1472
|
-
export declare type
|
|
787
|
+
export declare type StrykerRun = (options: PartialStrykerOptions, targetMutatePatterns?: string[]) => Effect.Effect<MutationTestDone, StageError, never>;
|
|
1473
788
|
|
|
1474
|
-
export declare const
|
|
1475
|
-
readonly id: S.String;
|
|
1476
|
-
readonly name: S.String;
|
|
1477
|
-
readonly timeSpentMs: S.Finite;
|
|
1478
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
1479
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
1480
|
-
readonly line: S.Finite;
|
|
1481
|
-
readonly column: S.Finite;
|
|
1482
|
-
}>>;
|
|
1483
|
-
readonly status: S.Literal<"failed">;
|
|
1484
|
-
readonly failureMessage: S.String;
|
|
1485
|
-
}>, S.Struct<{
|
|
1486
|
-
readonly id: S.String;
|
|
1487
|
-
readonly name: S.String;
|
|
1488
|
-
readonly timeSpentMs: S.Finite;
|
|
1489
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
1490
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
1491
|
-
readonly line: S.Finite;
|
|
1492
|
-
readonly column: S.Finite;
|
|
1493
|
-
}>>;
|
|
1494
|
-
readonly status: S.Literal<"skipped">;
|
|
1495
|
-
}>, S.Struct<{
|
|
1496
|
-
readonly id: S.String;
|
|
1497
|
-
readonly name: S.String;
|
|
1498
|
-
readonly timeSpentMs: S.Finite;
|
|
1499
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
1500
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
1501
|
-
readonly line: S.Finite;
|
|
1502
|
-
readonly column: S.Finite;
|
|
1503
|
-
}>>;
|
|
1504
|
-
readonly status: S.Literal<"success">;
|
|
1505
|
-
}>]>;
|
|
789
|
+
export declare const strykerVersion: string;
|
|
1506
790
|
|
|
1507
|
-
export declare
|
|
791
|
+
export declare const SUPPORTED_CONFIG_FILE_NAMES: readonly string[];
|
|
1508
792
|
|
|
1509
|
-
declare const
|
|
793
|
+
export declare const survivorsPriorReport: S.optionalKey<S.String>;
|
|
1510
794
|
|
|
1511
|
-
|
|
1512
|
-
readonly
|
|
795
|
+
declare interface TestCoverage {
|
|
796
|
+
readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<TestResult>>;
|
|
797
|
+
readonly testsById: MutableHashMap.MutableHashMap<string, TestResult>;
|
|
798
|
+
readonly staticCoverage: CoverageData | undefined;
|
|
799
|
+
readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
|
|
1513
800
|
}
|
|
1514
801
|
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
802
|
+
/** What building a runner for this run needs. */
|
|
803
|
+
export declare interface TestRunnerBuildContext {
|
|
804
|
+
readonly options: StrykerOptions;
|
|
805
|
+
readonly fileDescriptions: FileDescriptions;
|
|
806
|
+
readonly sandboxWorkingDirectory: string;
|
|
807
|
+
readonly idGenerator: IdGeneratorShape;
|
|
808
|
+
/**
|
|
809
|
+
* Retire this runner's worker. Supplied by whoever owns the worker's
|
|
810
|
+
* lifetime — the pool — so a combinator never restarts a process the pool
|
|
811
|
+
* still believes it owns.
|
|
812
|
+
*/
|
|
813
|
+
readonly retire: Effect.Effect<void>;
|
|
814
|
+
readonly testFiles: readonly string[];
|
|
815
|
+
}
|
|
1518
816
|
|
|
1519
|
-
export declare
|
|
817
|
+
export declare const toRelativeNormalizedFileName: (fileName: string | undefined, basePath: string) => string;
|
|
1520
818
|
|
|
1521
|
-
declare const
|
|
1522
|
-
readonly cause: S.String;
|
|
1523
|
-
readonly phase: S.Literals<readonly ["capabilities", "dispose", "dryRun", "init", "mutantRun"]>;
|
|
1524
|
-
readonly runnerName: S.String;
|
|
1525
|
-
}>, YieldableError>;
|
|
819
|
+
declare const TypeId: '~stryker/mutation-run/StageError';
|
|
1526
820
|
|
|
1527
|
-
export declare interface
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
readonly dryRun: (options: DryRunOptions) => Effect.Effect<DryRunResult, TestRunnerFailed>;
|
|
1531
|
-
readonly mutantRun: (options: MutantRunOptions) => Effect.Effect<MutantRunResult, TestRunnerFailed>;
|
|
1532
|
-
readonly dispose: Effect.Effect<void, TestRunnerFailed>;
|
|
821
|
+
export declare interface UnserializableDescription {
|
|
822
|
+
path: string[];
|
|
823
|
+
reason: string;
|
|
1533
824
|
}
|
|
1534
825
|
|
|
1535
|
-
export declare
|
|
826
|
+
export declare function validateOptions(options: Record<string, unknown>, schema: ValidationSchemaDocument): Effect.Effect<StrykerOptions, ConfigError>;
|
|
1536
827
|
|
|
1537
|
-
export declare type
|
|
1538
|
-
|
|
1539
|
-
|
|
828
|
+
export declare type ValidationSchemaDocument = {
|
|
829
|
+
readonly properties?: unknown;
|
|
830
|
+
readonly [key: string]: unknown;
|
|
831
|
+
};
|
|
1540
832
|
|
|
1541
|
-
export declare const
|
|
1542
|
-
readonly high: S.Finite;
|
|
1543
|
-
readonly low: S.Finite;
|
|
1544
|
-
}>;
|
|
833
|
+
export declare const VERDICT_ENVELOPE_SCHEMA_VERSION = "1.1";
|
|
1545
834
|
|
|
1546
|
-
export declare interface
|
|
1547
|
-
readonly
|
|
1548
|
-
readonly
|
|
835
|
+
export declare interface VerdictCounts {
|
|
836
|
+
readonly killed: number;
|
|
837
|
+
readonly timeout: number;
|
|
838
|
+
readonly survived: number;
|
|
839
|
+
readonly noCoverage: number;
|
|
840
|
+
readonly runtimeErrors: number;
|
|
841
|
+
readonly compileErrors: number;
|
|
842
|
+
readonly ignored: number;
|
|
843
|
+
readonly pending: number;
|
|
1549
844
|
}
|
|
1550
845
|
|
|
1551
|
-
export declare interface
|
|
1552
|
-
readonly
|
|
1553
|
-
readonly
|
|
846
|
+
export declare interface VerdictEnvelope {
|
|
847
|
+
readonly schemaVersion: string;
|
|
848
|
+
readonly runId: string;
|
|
849
|
+
readonly mode: OutputMode;
|
|
850
|
+
readonly signal: ModeSignal;
|
|
851
|
+
readonly score: number | null;
|
|
852
|
+
readonly thresholds: VerdictThresholds;
|
|
853
|
+
readonly counts: VerdictCounts;
|
|
854
|
+
readonly reportFile: string | null;
|
|
855
|
+
readonly mutants: readonly VerdictMutant[];
|
|
1554
856
|
}
|
|
1555
857
|
|
|
1556
|
-
export declare function toMutantRunResult(dryRunResult: DryRunResult, reportAllKillers: boolean): MutantRunResult;
|
|
1557
|
-
|
|
1558
858
|
export declare function verdictExitClass(score: number | null, breakingThreshold: number | null): ExitClass | null;
|
|
1559
859
|
|
|
860
|
+
export declare interface VerdictMutant {
|
|
861
|
+
readonly id: string;
|
|
862
|
+
readonly file: string;
|
|
863
|
+
readonly location: mutants.Location;
|
|
864
|
+
readonly mutator: string;
|
|
865
|
+
readonly replacement: string | null;
|
|
866
|
+
readonly status: MutantStatus;
|
|
867
|
+
}
|
|
868
|
+
|
|
1560
869
|
export declare class VerdictReached extends VerdictReached_base {}
|
|
1561
870
|
|
|
1562
871
|
declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
|
|
@@ -1600,4 +909,101 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
|
|
|
1600
909
|
}>>;
|
|
1601
910
|
}>, {}>;
|
|
1602
911
|
|
|
912
|
+
export declare interface VerdictThresholds {
|
|
913
|
+
readonly high: number;
|
|
914
|
+
readonly low: number;
|
|
915
|
+
readonly break: number | null;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
export declare interface VmModule {
|
|
919
|
+
readonly createContext: (sandbox: object) => object;
|
|
920
|
+
readonly Script: new (code: string, options?: {
|
|
921
|
+
readonly filename?: string;
|
|
922
|
+
}) => VmScript;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export declare interface VmModuleBuiltin {
|
|
926
|
+
readonly createRequire: (fileName: string | URL) => VmRequire;
|
|
927
|
+
readonly stripTypeScriptTypes: (source: string, options?: {
|
|
928
|
+
readonly mode?: 'strip' | 'transform';
|
|
929
|
+
}) => string;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export declare interface VmPlatform {
|
|
933
|
+
readonly module: VmModuleBuiltin;
|
|
934
|
+
readonly vm: VmModule;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
declare type VmRequire = (specifier: string) => unknown;
|
|
938
|
+
|
|
939
|
+
export declare class VmRunner extends VmRunner_base {}
|
|
940
|
+
|
|
941
|
+
declare const VmRunner_base: Context.ServiceClass<VmRunner, "@systemfsoftware/stryker-js/VmRunner", VmPlatform>;
|
|
942
|
+
|
|
943
|
+
export declare const vmRunnerCapabilities: {
|
|
944
|
+
readonly reloadEnvironment: true;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
export declare const vmRunnerName = "vm";
|
|
948
|
+
|
|
949
|
+
export declare interface VmScript {
|
|
950
|
+
readonly runInContext: (context: object) => unknown;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export declare const vmTestRunner: (config: VmTestRunnerConfig) => Effect.Effect<PooledTestRunner, TestRunnerFailed, FileSystem.FileSystem | VmRunner>;
|
|
954
|
+
|
|
955
|
+
export declare interface VmTestRunnerConfig {
|
|
956
|
+
readonly testFiles: readonly string[];
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
export declare type WarningOptions = Exclude<StrykerOptions['warnings'], boolean>;
|
|
960
|
+
|
|
961
|
+
export declare type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
|
|
962
|
+
|
|
963
|
+
export declare type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
|
|
964
|
+
|
|
965
|
+
export declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
|
|
966
|
+
readonly exitClass: 'InternalError';
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
|
|
970
|
+
readonly pid: Schema.Int;
|
|
971
|
+
}>, YieldableError>;
|
|
972
|
+
|
|
973
|
+
export declare interface WorkerClientParams<Rpcs extends Rpc.Any> extends WorkerSpawnParams {
|
|
974
|
+
readonly rpcs: RpcGroup.RpcGroup<Rpcs>;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export declare type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
|
|
978
|
+
|
|
979
|
+
export declare class WorkerLauncher extends WorkerLauncher_base {}
|
|
980
|
+
|
|
981
|
+
declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher", WorkerLauncherShape>;
|
|
982
|
+
|
|
983
|
+
export declare interface WorkerLauncherShape {
|
|
984
|
+
readonly spawn: (params: WorkerSpawnParams) => Effect.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
declare interface WorkerPluginDescriptor<K extends WorkerPluginKind = WorkerPluginKind> {
|
|
988
|
+
readonly kind: K;
|
|
989
|
+
readonly name: string;
|
|
990
|
+
readonly workerEntry: string;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
declare interface WorkerPluginSource<K extends WorkerPluginKind = WorkerPluginKind> {
|
|
994
|
+
readonly kind: K;
|
|
995
|
+
readonly name: string;
|
|
996
|
+
readonly modulePath: string;
|
|
997
|
+
readonly workerEntry: string;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export declare interface WorkerSpawnParams {
|
|
1001
|
+
readonly entrypoint: string;
|
|
1002
|
+
readonly workingDirectory: string;
|
|
1003
|
+
readonly execArgv: readonly string[];
|
|
1004
|
+
readonly optionsJson: string;
|
|
1005
|
+
readonly tempDirPrefix: string;
|
|
1006
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1603
1009
|
export { }
|