@systemfsoftware/stryker-js 3.0.2 → 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 +101 -0
- package/LICENSE +3 -15
- package/README.md +69 -21
- 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 +1009 -8
- package/dist/index.mjs +3 -9
- 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 +81 -38
- package/dist/Checker-A8o5B3Ub.d.mts +0 -40
- package/dist/Checker-Bq8NXD8d.mjs +0 -25
- package/dist/Checker.d.mts +0 -2
- package/dist/Checker.mjs +0 -2
- package/dist/Evaluator-CnAN8-pZ.d.mts +0 -19
- package/dist/Evaluator.d.mts +0 -3
- package/dist/Evaluator.mjs +0 -9
- package/dist/ExitClass.d.mts +0 -9
- package/dist/ExitClass.mjs +0 -59
- package/dist/ExitClass.schema-BmOIK5zT.d.mts +0 -18
- package/dist/Ignorer-BUY68FZQ.d.mts +0 -21
- package/dist/Ignorer.d.mts +0 -2
- package/dist/Ignorer.mjs +0 -7
- package/dist/Metrics.d.mts +0 -7
- package/dist/Metrics.mjs +0 -79
- package/dist/Metrics.schema-BaVd6rXs.d.mts +0 -50
- package/dist/Metrics.schema-DZdoc46X.mjs +0 -27
- package/dist/Module-DHKEMAFI.d.mts +0 -31
- package/dist/Module.d.mts +0 -2
- package/dist/Module.mjs +0 -16
- package/dist/Mutant-Ci25PsWA.d.mts +0 -351
- package/dist/Mutant.d.mts +0 -3
- package/dist/Mutant.mjs +0 -90
- package/dist/Mutant.schema-H3r0ho_R.mjs +0 -34
- package/dist/Plugin-BtItMchw.d.mts +0 -153
- package/dist/Plugin-DXFdJP1l.mjs +0 -105
- package/dist/Plugin.d.mts +0 -2
- package/dist/Plugin.mjs +0 -2
- package/dist/Report.d.mts +0 -2
- package/dist/Report.mjs +0 -98
- package/dist/Report.schema-_buHXdnZ.d.mts +0 -251
- package/dist/Reporter-BWTwlSJf.mjs +0 -25
- package/dist/Reporter-C7ysGxqX.d.mts +0 -16
- package/dist/Reporter.d.mts +0 -4
- package/dist/Reporter.mjs +0 -3
- package/dist/ReporterEvent.d.mts +0 -2
- package/dist/ReporterEvent.mjs +0 -57
- package/dist/ReporterEvent.schema-BhtyYCZo.d.mts +0 -189
- package/dist/Run-BUpNSmcM.d.mts +0 -172
- package/dist/Run.d.mts +0 -2
- package/dist/Run.mjs +0 -56
- package/dist/Run.schema-DZve3k2m.mjs +0 -138
- package/dist/Schema-4oCWQ0P0.d.mts +0 -158
- package/dist/Schema-CMKdWMUN.mjs +0 -244
- package/dist/Schema.d.mts +0 -2
- package/dist/Schema.mjs +0 -2
- package/dist/TestRunner.d.mts +0 -2
- package/dist/TestRunner.mjs +0 -57
- package/dist/TestRunner.schema-Dy0Wdro2.mjs +0 -119
- package/dist/output-file.d.mts +0 -8
- package/dist/output-file.mjs +0 -8
- package/dist/provided-options.d.mts +0 -16
- package/dist/provided-options.mjs +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,1009 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
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';
|
|
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';
|
|
13
|
+
import * as Effect from 'effect/Effect';
|
|
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';
|
|
19
|
+
import * as FileSystem from 'effect/FileSystem';
|
|
20
|
+
import * as HashMap from 'effect/HashMap';
|
|
21
|
+
import { Ignorer } from '@systemfsoftware/stryker-ignorer-interface';
|
|
22
|
+
import * as Layer from 'effect/Layer';
|
|
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';
|
|
36
|
+
import * as Path from 'effect/Path';
|
|
37
|
+
import { PlatformError } from 'effect/PlatformError';
|
|
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';
|
|
47
|
+
import * as S from 'effect/Schema';
|
|
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';
|
|
59
|
+
import { YieldableError } from 'effect/Cause';
|
|
60
|
+
|
|
61
|
+
export declare const ACTIONABLE_STATUSES: readonly ['Survived', 'NoCoverage', 'Timeout', 'RuntimeError'];
|
|
62
|
+
|
|
63
|
+
declare type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
|
|
64
|
+
|
|
65
|
+
declare type AnyWorkerPluginDescriptor = { [K in WorkerPluginKind]: WorkerPluginDescriptor<K>; }[WorkerPluginKind];
|
|
66
|
+
|
|
67
|
+
declare type AnyWorkerPluginSource = { [K in WorkerPluginKind]: WorkerPluginSource<K>; }[WorkerPluginKind];
|
|
68
|
+
|
|
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>;
|
|
70
|
+
|
|
71
|
+
export declare function buildVerdictEnvelope(report: schema.MutationTestResult, mode: OutputMode, signal: ModeSignal, runId: string, basePath: string, pathService: Path.Path): VerdictEnvelope;
|
|
72
|
+
|
|
73
|
+
export declare const calculateMetrics: (files: Readonly<Record<string, FileResult>>) => MetricsResult;
|
|
74
|
+
|
|
75
|
+
declare class CheckerAnsweredUnrequested extends CheckerAnsweredUnrequested_base {}
|
|
76
|
+
|
|
77
|
+
declare const CheckerAnsweredUnrequested_base: S.Class<CheckerAnsweredUnrequested, S.TaggedStruct<"CheckerAnsweredUnrequested", {
|
|
78
|
+
readonly checkerName: S.String;
|
|
79
|
+
readonly phase: S.Literals<readonly ["check", "group"]>;
|
|
80
|
+
readonly unrequestedIds: S.$Array<S.String>;
|
|
81
|
+
readonly requestedIds: S.$Array<S.String>;
|
|
82
|
+
}>, YieldableError>;
|
|
83
|
+
|
|
84
|
+
declare type CheckerContractBroken = CheckerAnsweredUnrequested | CheckerSkippedRequested;
|
|
85
|
+
|
|
86
|
+
declare type CheckerCrash = ChildProcessCrashedError | OutOfMemoryError;
|
|
87
|
+
|
|
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
|
+
}
|
|
107
|
+
|
|
108
|
+
declare class CheckerSkippedRequested extends CheckerSkippedRequested_base {}
|
|
109
|
+
|
|
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>;
|
|
115
|
+
|
|
116
|
+
export declare const checkGroupedPlans: (checker: CheckerResourceService, checkerName: string, plans: readonly RunPlan[]) => Effect.Effect<readonly (readonly [RunPlan, CheckResult])[], CheckerCrash | CheckerContractBroken>;
|
|
117
|
+
|
|
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>;
|
|
136
|
+
|
|
137
|
+
export declare const classifyWorkerExit: (pid: number, exitCode: number) => ChildProcessCrashedError | OutOfMemoryError;
|
|
138
|
+
|
|
139
|
+
export declare interface CompiledTests {
|
|
140
|
+
readonly fileName: string;
|
|
141
|
+
readonly script: VmScript;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare const CONFIG_SYNTAX_HELP: string;
|
|
145
|
+
|
|
146
|
+
export declare const ConfigDocumentSchema: S.$Record<S.String, S.Unknown>;
|
|
147
|
+
|
|
148
|
+
declare interface ConfigEnv {
|
|
149
|
+
readonly command: 'run' | 'merge-reports';
|
|
150
|
+
readonly isDryRun: boolean;
|
|
151
|
+
readonly mode: OutputMode;
|
|
152
|
+
readonly isCi: boolean;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export declare class ConfigError extends ConfigError_base {
|
|
156
|
+
readonly exitClass: 'ConfigError';
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
|
|
160
|
+
readonly message: S.String;
|
|
161
|
+
}>, YieldableError>;
|
|
162
|
+
|
|
163
|
+
export declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
|
|
164
|
+
readonly exitClass: 'ConfigError';
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
|
|
168
|
+
readonly file: S.String;
|
|
169
|
+
readonly cause: S.Unknown;
|
|
170
|
+
}>, YieldableError>;
|
|
171
|
+
|
|
172
|
+
export declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
|
|
173
|
+
readonly exitClass: 'ConfigError';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
|
|
177
|
+
readonly file: S.String;
|
|
178
|
+
}>, YieldableError>;
|
|
179
|
+
|
|
180
|
+
export declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
|
|
181
|
+
readonly exitClass: 'ConfigError';
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
|
|
185
|
+
readonly file: S.String;
|
|
186
|
+
readonly cause: S.Unknown;
|
|
187
|
+
}>, YieldableError>;
|
|
188
|
+
|
|
189
|
+
export declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
|
|
190
|
+
readonly exitClass: 'ConfigError';
|
|
191
|
+
get message(): string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
|
|
195
|
+
readonly file: S.String;
|
|
196
|
+
readonly hint: S.String;
|
|
197
|
+
}>, YieldableError>;
|
|
198
|
+
|
|
199
|
+
export declare interface ConfigInvocation {
|
|
200
|
+
readonly command: 'run' | 'merge-reports';
|
|
201
|
+
readonly mode: OutputMode;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export declare const connectRetry: Schedule.Schedule<Duration_2, unknown, never, never>;
|
|
205
|
+
|
|
206
|
+
export declare const countMutants: (mutants: readonly MutantResult[]) => Metrics;
|
|
207
|
+
|
|
208
|
+
export declare const createDefaultOptions: Effect.Effect<StrykerOptions>;
|
|
209
|
+
|
|
210
|
+
export declare function createFileMatcher(pattern: boolean | string, pathService: Path.Path, allowHiddenFiles?: boolean): (fileName: string) => boolean;
|
|
211
|
+
|
|
212
|
+
export declare const decideExtendsStep: (state: ExtendsStepState, document: PartialStrykerOptions, file: string, pathService: Path.Path) => ExtendsStepDecision;
|
|
213
|
+
|
|
214
|
+
export declare function deepFreeze<T>(target: T): Immutable<T>;
|
|
215
|
+
|
|
216
|
+
export declare const defaultOptions: Effect.Effect<Immutable<StrykerOptions>, never, never>;
|
|
217
|
+
|
|
218
|
+
export declare function describeErrors(error: S.SchemaError): string[];
|
|
219
|
+
|
|
220
|
+
declare const DoneTag: {
|
|
221
|
+
readonly _tag: 'done';
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
declare type DoneTag = typeof DoneTag;
|
|
225
|
+
|
|
226
|
+
export declare interface DryRunDone extends InstrumentDone {
|
|
227
|
+
readonly dryRunResult: CompleteDryRunResult;
|
|
228
|
+
readonly testCoverage: TestCoverage;
|
|
229
|
+
readonly timeOverhead: Duration.Duration;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export declare type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
|
|
233
|
+
|
|
234
|
+
declare interface EvaluatorPluginDescriptor {
|
|
235
|
+
readonly kind: 'Evaluator';
|
|
236
|
+
readonly name: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare interface EvaluatorPluginSource {
|
|
240
|
+
readonly kind: 'Evaluator';
|
|
241
|
+
readonly name: string;
|
|
242
|
+
readonly modulePath: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export declare const EXIT_CODE: Record<ExitClass, number>;
|
|
246
|
+
|
|
247
|
+
export { ExitClass }
|
|
248
|
+
|
|
249
|
+
export declare const extendsPropertySchema: S.optionalKey<S.String>;
|
|
250
|
+
|
|
251
|
+
export declare type ExtendsRefusalReason = 'cycle' | 'non-string-extends';
|
|
252
|
+
|
|
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
|
+
});
|
|
265
|
+
|
|
266
|
+
export declare interface ExtendsStepDocument {
|
|
267
|
+
readonly path: string;
|
|
268
|
+
readonly options: PartialStrykerOptions;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare interface ExtendsStepState {
|
|
272
|
+
readonly visited: readonly string[];
|
|
273
|
+
readonly documents: readonly ExtendsStepDocument[];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export declare function findUnserializables(thing: unknown): UnserializableDescription[] | undefined;
|
|
277
|
+
|
|
278
|
+
export declare const forkCoreSchema: Record<string, unknown>;
|
|
279
|
+
|
|
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>]>;
|
|
354
|
+
|
|
355
|
+
export declare function generateRunId(now: DateTime.Utc): string;
|
|
356
|
+
|
|
357
|
+
export declare class Heartbeat extends Heartbeat_base {}
|
|
358
|
+
|
|
359
|
+
declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
|
|
360
|
+
readonly elapsedMs: S.Finite;
|
|
361
|
+
readonly completed: S.Finite;
|
|
362
|
+
readonly total: S.NullOr<S.Finite>;
|
|
363
|
+
}>, {}>;
|
|
364
|
+
|
|
365
|
+
export declare class HelpRendered extends HelpRendered_base {}
|
|
366
|
+
|
|
367
|
+
declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
|
|
368
|
+
readonly schemaVersion: S.String;
|
|
369
|
+
readonly code: S.Literals<readonly [0]>;
|
|
370
|
+
readonly help: S.String;
|
|
371
|
+
}>, {}>;
|
|
372
|
+
|
|
373
|
+
export declare function highestExitClass(pending: Iterable<ExitClass>): ExitClass | null;
|
|
374
|
+
|
|
375
|
+
declare class IdGenerator extends IdGenerator_base {}
|
|
376
|
+
|
|
377
|
+
declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker/IdGenerator", IdGeneratorShape>;
|
|
378
|
+
|
|
379
|
+
declare interface IdGeneratorShape {
|
|
380
|
+
readonly next: Effect.Effect<number>;
|
|
381
|
+
}
|
|
382
|
+
|
|
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]>; };
|
|
384
|
+
|
|
385
|
+
declare type ImmutablePrimitive = Primitive | ((...args: never[]) => unknown);
|
|
386
|
+
|
|
387
|
+
export declare const ImportedModuleSchema: S.Struct<{
|
|
388
|
+
readonly default: S.optional<S.Unknown>;
|
|
389
|
+
}>;
|
|
390
|
+
|
|
391
|
+
export declare function importModule(moduleName: string): Effect.Effect<unknown, StrykerError>;
|
|
392
|
+
|
|
393
|
+
export declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
|
|
394
|
+
readonly schemaVersion: S.String;
|
|
395
|
+
readonly thresholds: S.Struct<{
|
|
396
|
+
readonly high: S.Finite;
|
|
397
|
+
readonly low: S.Finite;
|
|
398
|
+
}>;
|
|
399
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
400
|
+
readonly language: S.String;
|
|
401
|
+
readonly source: S.String;
|
|
402
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
403
|
+
readonly id: S.String;
|
|
404
|
+
readonly mutatorName: S.String;
|
|
405
|
+
readonly replacement: S.String;
|
|
406
|
+
readonly location: S.Struct<{
|
|
407
|
+
readonly start: S.Struct<{
|
|
408
|
+
readonly line: S.Finite;
|
|
409
|
+
readonly column: S.Finite;
|
|
410
|
+
}>;
|
|
411
|
+
readonly end: S.Struct<{
|
|
412
|
+
readonly line: S.Finite;
|
|
413
|
+
readonly column: S.Finite;
|
|
414
|
+
}>;
|
|
415
|
+
}>;
|
|
416
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "Timeout", "CompileError", "RuntimeError", "Ignored", "Pending"]>;
|
|
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>;
|
|
421
|
+
readonly testsCompleted: S.optional<S.Finite>;
|
|
422
|
+
readonly description: S.optional<S.String>;
|
|
423
|
+
readonly duration: S.optional<S.Finite>;
|
|
424
|
+
}>>;
|
|
425
|
+
}>>;
|
|
426
|
+
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
427
|
+
readonly source: S.optional<S.String>;
|
|
428
|
+
readonly tests: S.$Array<S.Struct<{
|
|
429
|
+
readonly id: S.String;
|
|
430
|
+
readonly name: S.String;
|
|
431
|
+
readonly location: S.optional<S.Struct<{
|
|
432
|
+
readonly start: S.Struct<{
|
|
433
|
+
readonly line: S.Finite;
|
|
434
|
+
readonly column: S.Finite;
|
|
435
|
+
}>;
|
|
436
|
+
readonly end: S.optional<S.Struct<{
|
|
437
|
+
readonly line: S.Finite;
|
|
438
|
+
readonly column: S.Finite;
|
|
439
|
+
}>>;
|
|
440
|
+
}>>;
|
|
441
|
+
}>>;
|
|
442
|
+
}>>>;
|
|
443
|
+
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
444
|
+
|
|
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
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export declare function isActionableStatus(status: MutantStatus): boolean;
|
|
457
|
+
|
|
458
|
+
/** Whether a configured runner name selects this runner. */
|
|
459
|
+
export declare const isCommandRunner: (name: string) => name is 'command';
|
|
460
|
+
|
|
461
|
+
export declare function isModuleSpecifier(value: string): boolean;
|
|
462
|
+
|
|
463
|
+
export declare const isVmRunner: (name: string) => name is 'vm';
|
|
464
|
+
|
|
465
|
+
export declare function isWarningEnabled(warningType: KnownKeys<WarningOptions>, warningOptions: WarningOptions | boolean): boolean;
|
|
466
|
+
|
|
467
|
+
declare type KnownKeys<T> = keyof { [P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; };
|
|
468
|
+
|
|
469
|
+
export declare const loadConfigCell: typeof readConfig;
|
|
470
|
+
|
|
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
|
+
}
|
|
478
|
+
|
|
479
|
+
export declare const makeRunLayer: (env: RunEnvironmentShape, events?: Queue.Queue<RunEvent, Cause.Done>) => Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
480
|
+
|
|
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 {}
|
|
495
|
+
|
|
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';
|
|
513
|
+
}
|
|
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
|
+
|
|
529
|
+
export declare class PhaseEntered extends PhaseEntered_base {}
|
|
530
|
+
|
|
531
|
+
declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
|
|
532
|
+
readonly phase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
533
|
+
readonly elapsedMs: S.Finite;
|
|
534
|
+
}>, {}>;
|
|
535
|
+
|
|
536
|
+
export declare class PlanKnown extends PlanKnown_base {}
|
|
537
|
+
|
|
538
|
+
declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
|
|
539
|
+
readonly total: S.Finite;
|
|
540
|
+
}>, {}>;
|
|
541
|
+
|
|
542
|
+
declare type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
|
|
543
|
+
|
|
544
|
+
declare type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
|
|
545
|
+
readonly kind: K;
|
|
546
|
+
}>;
|
|
547
|
+
|
|
548
|
+
declare type PluginKind = WorkerPluginKind | 'Evaluator';
|
|
549
|
+
|
|
550
|
+
declare type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
|
|
551
|
+
|
|
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>;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** How a call on a pooled worker can fail. */
|
|
571
|
+
export declare type PooledTestRunnerError = TestRunnerFailed | ChildProcessCrashedError | OutOfMemoryError;
|
|
572
|
+
|
|
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;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export declare interface PrepareExecutorArgs {
|
|
583
|
+
cliOptions: PartialStrykerOptions;
|
|
584
|
+
targetMutatePatterns: string[] | undefined;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export declare type Primitive = boolean | number | string | null | undefined;
|
|
588
|
+
|
|
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
|
+
}
|
|
596
|
+
|
|
597
|
+
declare interface ProjectFile extends FileDescription {
|
|
598
|
+
readonly name: string;
|
|
599
|
+
readonly mutate: MutateDescription;
|
|
600
|
+
readonly content: string | undefined;
|
|
601
|
+
readonly originalContent: string | undefined;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export declare function readConfig(cliOptions: PartialStrykerOptions, invocation: ConfigInvocation): Effect.Effect<StrykerOptions, ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError, FileSystem.FileSystem | Path.Path>;
|
|
605
|
+
|
|
606
|
+
export declare class ReadConfigCommand extends ReadConfigCommand_base {}
|
|
607
|
+
|
|
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
|
+
}>, {}>;
|
|
612
|
+
|
|
613
|
+
declare const ReadTag: {
|
|
614
|
+
readonly _tag: 'read';
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
declare type ReadTag = typeof ReadTag;
|
|
618
|
+
|
|
619
|
+
declare const RefusedTag: {
|
|
620
|
+
readonly _tag: 'refused';
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
declare type RefusedTag = typeof RefusedTag;
|
|
624
|
+
|
|
625
|
+
export declare const REPORTER_EVENT_BATCH_BOUND = 128;
|
|
626
|
+
|
|
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
|
+
}
|
|
636
|
+
|
|
637
|
+
declare const ReporterStageTypeId: unique symbol;
|
|
638
|
+
|
|
639
|
+
export declare type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof ReporterRpcs>, RpcClientError>;
|
|
640
|
+
|
|
641
|
+
export declare const reporterWorkerFactory: (client: ReporterWorkerClient) => ReporterFactory;
|
|
642
|
+
|
|
643
|
+
export declare interface ResolvedMode {
|
|
644
|
+
readonly mode: OutputMode;
|
|
645
|
+
readonly signal: ModeSignal;
|
|
646
|
+
readonly stdoutIsTTY: boolean;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export declare function resolveExitCode(pending: Iterable<ExitClass>, signal: number | null): number;
|
|
650
|
+
|
|
651
|
+
export declare function resolveExtends(configFile: string, document: PartialStrykerOptions, configEnv: ConfigEnv): Effect.Effect<PartialStrykerOptions, ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError, Path.Path>;
|
|
652
|
+
|
|
653
|
+
declare const ResolveTag: {
|
|
654
|
+
readonly _tag: 'resolve';
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
declare type ResolveTag = typeof ResolveTag;
|
|
658
|
+
|
|
659
|
+
export declare const RUN_EVENTS_QUEUE_BOUND = 256;
|
|
660
|
+
|
|
661
|
+
export declare class RunEnvironment extends RunEnvironment_base {}
|
|
662
|
+
|
|
663
|
+
declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment", RunEnvironmentShape>;
|
|
664
|
+
|
|
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>>;
|
|
671
|
+
readonly allowConsoleColors: boolean;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
|
|
675
|
+
|
|
676
|
+
export declare type RunEvent = typeof RunEvent.Type;
|
|
677
|
+
|
|
678
|
+
export declare class RunEvents extends RunEvents_base {}
|
|
679
|
+
|
|
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>>>;
|
|
681
|
+
|
|
682
|
+
export declare class RunFailed extends RunFailed_base {}
|
|
683
|
+
|
|
684
|
+
declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
|
|
685
|
+
readonly schemaVersion: S.String;
|
|
686
|
+
readonly code: S.Finite;
|
|
687
|
+
readonly error: S.String;
|
|
688
|
+
readonly remediation: S.String;
|
|
689
|
+
}>, {}>;
|
|
690
|
+
|
|
691
|
+
export declare class RunIdentity extends RunIdentity_base {}
|
|
692
|
+
|
|
693
|
+
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/RunEvents/RunIdentity", RunIdentityShape>;
|
|
694
|
+
|
|
695
|
+
export declare interface RunIdentityShape {
|
|
696
|
+
readonly runId: string;
|
|
697
|
+
readonly basePath: string;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export declare class RunMutantTested extends RunMutantTested_base {}
|
|
701
|
+
|
|
702
|
+
declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mutant", {
|
|
703
|
+
readonly id: S.String;
|
|
704
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
705
|
+
readonly file: S.String;
|
|
706
|
+
readonly location: S.Struct<{
|
|
707
|
+
readonly start: S.Struct<{
|
|
708
|
+
readonly line: S.Finite;
|
|
709
|
+
readonly column: S.Finite;
|
|
710
|
+
}>;
|
|
711
|
+
readonly end: S.Struct<{
|
|
712
|
+
readonly line: S.Finite;
|
|
713
|
+
readonly column: S.Finite;
|
|
714
|
+
}>;
|
|
715
|
+
}>;
|
|
716
|
+
readonly mutator: S.String;
|
|
717
|
+
readonly replacement: S.NullOr<S.String>;
|
|
718
|
+
readonly completed: S.Finite;
|
|
719
|
+
readonly total: S.Finite;
|
|
720
|
+
}>, {}>;
|
|
721
|
+
|
|
722
|
+
export declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
723
|
+
|
|
724
|
+
export declare type RunPhase = typeof RunPhase.Type;
|
|
725
|
+
|
|
726
|
+
export declare type RunStageServices = RunEnvironment | RunEvents | IdGenerator | Scope.Scope;
|
|
727
|
+
|
|
728
|
+
export declare class RunStarted extends RunStarted_base {}
|
|
729
|
+
|
|
730
|
+
declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
|
|
731
|
+
readonly schemaVersion: S.String;
|
|
732
|
+
readonly runId: S.String;
|
|
733
|
+
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
734
|
+
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
735
|
+
}>, {}>;
|
|
736
|
+
|
|
737
|
+
export declare type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
|
|
738
|
+
|
|
739
|
+
declare interface SandboxHandle {
|
|
740
|
+
readonly workingDirectory: string;
|
|
741
|
+
readonly sandboxFileFor: (fileName: string) => string;
|
|
742
|
+
readonly originalFileFor: (sandboxFileName: string) => string;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export declare const shouldKeepTempDir: (exit: Exit.Exit<unknown, unknown>, cleanTempDir: 'always' | boolean) => boolean;
|
|
746
|
+
|
|
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>;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
export declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
754
|
+
|
|
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;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export declare class StageError extends StageError_base {
|
|
764
|
+
readonly [TypeId]: "~stryker/mutation-run/StageError";
|
|
765
|
+
get exitClass(): ExitClass;
|
|
766
|
+
get message(): string;
|
|
767
|
+
}
|
|
768
|
+
|
|
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>;
|
|
775
|
+
|
|
776
|
+
declare type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | Path.Path | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
|
|
777
|
+
|
|
778
|
+
export declare const strykerCell: (options: PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Effect.Effect<MutationTestDone, StageError | PlatformError, FileSystem.FileSystem | Path.Path | Stdio.Stdio>;
|
|
779
|
+
|
|
780
|
+
export declare class StrykerError extends StrykerError_base {}
|
|
781
|
+
|
|
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>;
|
|
786
|
+
|
|
787
|
+
export declare type StrykerRun = (options: PartialStrykerOptions, targetMutatePatterns?: string[]) => Effect.Effect<MutationTestDone, StageError, never>;
|
|
788
|
+
|
|
789
|
+
export declare const strykerVersion: string;
|
|
790
|
+
|
|
791
|
+
export declare const SUPPORTED_CONFIG_FILE_NAMES: readonly string[];
|
|
792
|
+
|
|
793
|
+
export declare const survivorsPriorReport: S.optionalKey<S.String>;
|
|
794
|
+
|
|
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>;
|
|
800
|
+
}
|
|
801
|
+
|
|
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
|
+
}
|
|
816
|
+
|
|
817
|
+
export declare const toRelativeNormalizedFileName: (fileName: string | undefined, basePath: string) => string;
|
|
818
|
+
|
|
819
|
+
declare const TypeId: '~stryker/mutation-run/StageError';
|
|
820
|
+
|
|
821
|
+
export declare interface UnserializableDescription {
|
|
822
|
+
path: string[];
|
|
823
|
+
reason: string;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export declare function validateOptions(options: Record<string, unknown>, schema: ValidationSchemaDocument): Effect.Effect<StrykerOptions, ConfigError>;
|
|
827
|
+
|
|
828
|
+
export declare type ValidationSchemaDocument = {
|
|
829
|
+
readonly properties?: unknown;
|
|
830
|
+
readonly [key: string]: unknown;
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
export declare const VERDICT_ENVELOPE_SCHEMA_VERSION = "1.1";
|
|
834
|
+
|
|
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;
|
|
844
|
+
}
|
|
845
|
+
|
|
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[];
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export declare function verdictExitClass(score: number | null, breakingThreshold: number | null): ExitClass | null;
|
|
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
|
+
|
|
869
|
+
export declare class VerdictReached extends VerdictReached_base {}
|
|
870
|
+
|
|
871
|
+
declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
|
|
872
|
+
readonly schemaVersion: S.String;
|
|
873
|
+
readonly runId: S.String;
|
|
874
|
+
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
875
|
+
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
876
|
+
readonly score: S.NullOr<S.Finite>;
|
|
877
|
+
readonly thresholds: S.Struct<{
|
|
878
|
+
readonly high: S.Finite;
|
|
879
|
+
readonly low: S.Finite;
|
|
880
|
+
readonly break: S.NullOr<S.Finite>;
|
|
881
|
+
}>;
|
|
882
|
+
readonly reportFile: S.NullOr<S.String>;
|
|
883
|
+
readonly counts: S.Struct<{
|
|
884
|
+
readonly killed: S.Finite;
|
|
885
|
+
readonly timeout: S.Finite;
|
|
886
|
+
readonly survived: S.Finite;
|
|
887
|
+
readonly noCoverage: S.Finite;
|
|
888
|
+
readonly runtimeErrors: S.Finite;
|
|
889
|
+
readonly compileErrors: S.Finite;
|
|
890
|
+
readonly ignored: S.Finite;
|
|
891
|
+
readonly pending: S.Finite;
|
|
892
|
+
}>;
|
|
893
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
894
|
+
readonly id: S.String;
|
|
895
|
+
readonly file: S.String;
|
|
896
|
+
readonly location: S.Struct<{
|
|
897
|
+
readonly start: S.Struct<{
|
|
898
|
+
readonly line: S.Finite;
|
|
899
|
+
readonly column: S.Finite;
|
|
900
|
+
}>;
|
|
901
|
+
readonly end: S.Struct<{
|
|
902
|
+
readonly line: S.Finite;
|
|
903
|
+
readonly column: S.Finite;
|
|
904
|
+
}>;
|
|
905
|
+
}>;
|
|
906
|
+
readonly mutator: S.String;
|
|
907
|
+
readonly replacement: S.NullOr<S.String>;
|
|
908
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
909
|
+
}>>;
|
|
910
|
+
}>, {}>;
|
|
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
|
+
|
|
1009
|
+
export { }
|