@systemfsoftware/stryker-js 13.1.0 → 15.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 +62 -0
- package/README.md +30 -0
- package/dist/Run.schema-B1HZugu9.d.mts +24 -0
- package/dist/Run.schema-DuaneDGd.mjs +57 -0
- package/dist/RunEnvironment.service-B1bsWOQ9.d.mts +2927 -0
- package/dist/config.d.mts +4 -4
- package/dist/config.mjs +1 -1
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/{index-Ptvmn934.d.mts → index-Cf9G6kA8.d.mts} +1683 -3073
- package/dist/index.d.mts +622 -105
- package/dist/index.mjs +1104 -26
- package/dist/main.mjs +53956 -34882
- package/dist/{merge-config-BVdwN_LJ.d.mts → merge-config-BdQdK3PM.d.mts} +4 -4
- package/dist/merge-config-zsGl1aWc.mjs +1473 -0
- package/dist/promises.d.mts +3 -3
- package/dist/promises.mjs +1 -1
- package/dist/run-stages-aBT_QAfO.mjs +20687 -0
- package/package.json +17 -17
- package/dist/Run.schema-BwLLAYqu.d.mts +0 -325
- package/dist/Run.schema-Cv2_Kup0.mjs +0 -272
- package/dist/RunEnvironment.service-rkMZ8nm1.d.mts +0 -530
- package/dist/dist-CQ7r4AaH.mjs +0 -8142
- package/dist/merge-config-DZHwEkGY.mjs +0 -63
- package/dist/run-stages.cell-rdoY0cVH.mjs +0 -8857
|
@@ -1,530 +0,0 @@
|
|
|
1
|
-
import { a as mod_d_exports$5, c as mod_d_exports$2, d as Ignorer, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6, r as mod_d_exports$3, s as mod_d_exports$1, t as mod_d_exports, u as Framework } from "./index-Ptvmn934.mjs";
|
|
2
|
-
import { C as RunMutantTested, E as RunStarted, M as VerdictReached, S as RunId, b as RunEvent, c as FormatRegistryResolved, f as Heartbeat, g as PlanKnown, h as PhaseEntered, k as SkippedReported, o as ResolvedMode, p as HelpRendered, v as PluginsReported, x as RunFailed } from "./Run.schema-BwLLAYqu.mjs";
|
|
3
|
-
import { Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
4
|
-
import "effect/Option";
|
|
5
|
-
import "effect/Result";
|
|
6
|
-
import * as S from "effect/Schema";
|
|
7
|
-
import * as Effect$1 from "effect/Effect";
|
|
8
|
-
import * as Context from "effect/Context";
|
|
9
|
-
import { Schema } from "effect";
|
|
10
|
-
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
11
|
-
import * as Cause from "effect/Cause";
|
|
12
|
-
import * as FileSystem from "effect/FileSystem";
|
|
13
|
-
import * as Path from "effect/Path";
|
|
14
|
-
import * as Stream from "effect/Stream";
|
|
15
|
-
import * as Layer from "effect/Layer";
|
|
16
|
-
import * as Queue from "effect/Queue";
|
|
17
|
-
import * as Scope from "effect/Scope";
|
|
18
|
-
import * as HashMap from "effect/HashMap";
|
|
19
|
-
import * as MutableHashMap from "effect/MutableHashMap";
|
|
20
|
-
import * as EffectDuration from "effect/Duration";
|
|
21
|
-
import * as RpcClient from "effect/unstable/rpc/RpcClient";
|
|
22
|
-
import * as Stdio from "effect/Stdio";
|
|
23
|
-
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
|
|
24
|
-
import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
|
|
25
|
-
import * as Socket from "effect/unstable/socket/Socket";
|
|
26
|
-
import { PlatformError } from "effect/PlatformError";
|
|
27
|
-
import "effect/Console";
|
|
28
|
-
import * as MutableHashSet from "effect/MutableHashSet";
|
|
29
|
-
import "effect/Runtime";
|
|
30
|
-
//#region src/Worker.schema.d.ts
|
|
31
|
-
/**
|
|
32
|
-
* The child process hosting a worker ended when it was not supposed to.
|
|
33
|
-
*/
|
|
34
|
-
declare const WorkerExitTypeId: unique symbol;
|
|
35
|
-
type WorkerExitTypeId = typeof WorkerExitTypeId;
|
|
36
|
-
declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
|
|
37
|
-
readonly pid: Schema.Int;
|
|
38
|
-
readonly exit: Schema.Union<readonly [Schema.TaggedStruct<"Code", {
|
|
39
|
-
readonly code: Schema.Int;
|
|
40
|
-
}>, Schema.TaggedStruct<"Signal", {
|
|
41
|
-
readonly signal: Schema.NonEmptyString;
|
|
42
|
-
}>]>;
|
|
43
|
-
readonly cause: Schema.optional<Schema.String>;
|
|
44
|
-
}>, import("effect/Cause").YieldableError>;
|
|
45
|
-
declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
|
|
46
|
-
readonly [WorkerExitTypeId]: symbol;
|
|
47
|
-
readonly exitClass: 'InternalError';
|
|
48
|
-
get message(): string;
|
|
49
|
-
}
|
|
50
|
-
declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
|
|
51
|
-
readonly pid: Schema.Int;
|
|
52
|
-
readonly exitCode: Schema.Int;
|
|
53
|
-
}>, import("effect/Cause").YieldableError>;
|
|
54
|
-
declare class OutOfMemoryError extends OutOfMemoryError_base {
|
|
55
|
-
readonly [WorkerExitTypeId]: symbol;
|
|
56
|
-
readonly exitClass: 'RuntimeError';
|
|
57
|
-
get message(): string;
|
|
58
|
-
}
|
|
59
|
-
type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
|
|
60
|
-
type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
|
|
61
|
-
declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
|
|
62
|
-
readonly pid: Schema.Int;
|
|
63
|
-
}>, import("effect/Cause").YieldableError>;
|
|
64
|
-
declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
|
|
65
|
-
readonly exitClass: 'InternalError';
|
|
66
|
-
get message(): string;
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/ConfigError.schema.d.ts
|
|
70
|
-
declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
|
|
71
|
-
readonly file: S.String;
|
|
72
|
-
}>, import("effect/Cause").YieldableError>;
|
|
73
|
-
declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
|
|
74
|
-
readonly exitClass: 'ConfigError';
|
|
75
|
-
get message(): string;
|
|
76
|
-
}
|
|
77
|
-
declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
|
|
78
|
-
readonly file: S.String;
|
|
79
|
-
readonly hint: S.String;
|
|
80
|
-
}>, import("effect/Cause").YieldableError>;
|
|
81
|
-
declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
|
|
82
|
-
readonly exitClass: 'ConfigError';
|
|
83
|
-
get message(): string;
|
|
84
|
-
}
|
|
85
|
-
declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
|
|
86
|
-
readonly file: S.String;
|
|
87
|
-
readonly cause: S.Unknown;
|
|
88
|
-
}>, import("effect/Cause").YieldableError>;
|
|
89
|
-
declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
|
|
90
|
-
readonly exitClass: 'ConfigError';
|
|
91
|
-
get message(): string;
|
|
92
|
-
}
|
|
93
|
-
declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
|
|
94
|
-
readonly file: S.String;
|
|
95
|
-
readonly cause: S.Unknown;
|
|
96
|
-
}>, import("effect/Cause").YieldableError>;
|
|
97
|
-
declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
|
|
98
|
-
readonly exitClass: 'ConfigError';
|
|
99
|
-
get message(): string;
|
|
100
|
-
}
|
|
101
|
-
declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
|
|
102
|
-
readonly message: S.String;
|
|
103
|
-
}>, import("effect/Cause").YieldableError>;
|
|
104
|
-
declare class ConfigError extends ConfigError_base {
|
|
105
|
-
readonly exitClass: 'ConfigError';
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/stryker-error.schema.d.ts
|
|
109
|
-
declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
|
|
110
|
-
readonly message: Schema.String;
|
|
111
|
-
readonly cause: Schema.optional<Schema.Unknown>;
|
|
112
|
-
}>, import("effect/Cause").YieldableError>;
|
|
113
|
-
declare class StrykerError extends StrykerError_base {}
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/run-events.service.d.ts
|
|
116
|
-
declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/run-events.service/RunEvents", Queue.Queue<FormatRegistryResolved | Heartbeat | HelpRendered | PhaseEntered | PlanKnown | PluginsReported | RunFailed | RunMutantTested | RunStarted | SkippedReported | VerdictReached, Cause.Done<void>>>;
|
|
117
|
-
declare class RunEvents extends RunEvents_base {}
|
|
118
|
-
interface RunIdentityShape {
|
|
119
|
-
readonly runId: string;
|
|
120
|
-
readonly basePath: string;
|
|
121
|
-
}
|
|
122
|
-
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/run-events.service/RunIdentity", RunIdentityShape>;
|
|
123
|
-
declare class RunIdentity extends RunIdentity_base {}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/frame-run-event.workflow.d.ts
|
|
126
|
-
declare const ResolvedModeInput: S.Struct<{
|
|
127
|
-
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
128
|
-
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
129
|
-
}>;
|
|
130
|
-
type ResolvedModeInput = typeof ResolvedModeInput.Type;
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region src/run-event-stream.service.d.ts
|
|
133
|
-
type FramedDrain = (framed: Stream.Stream<string, never, never>, toStdout: boolean) => Effect$1.Effect<void, never, never>;
|
|
134
|
-
interface RunEventDrainShape {
|
|
135
|
-
readonly drainFramed: FramedDrain;
|
|
136
|
-
readonly setProgressStreamFile: (fileName: string) => Effect$1.Effect<void, never, never>;
|
|
137
|
-
}
|
|
138
|
-
declare const RunEventDrain_base: Context.ServiceClass<RunEventDrain, "@systemfsoftware/stryker-js/run-event-stream.service/RunEventDrain", RunEventDrainShape>;
|
|
139
|
-
declare class RunEventDrain extends RunEventDrain_base {
|
|
140
|
-
static readonly layer: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
|
|
141
|
-
static readonly DefaultProgressStreamFile = "reports/mutation-stream.jsonl";
|
|
142
|
-
static readonly fileLayer: Layer.Layer<RunEventDrain, never, Stdio.Stdio | FileSystem.FileSystem | Path.Path>;
|
|
143
|
-
}
|
|
144
|
-
declare const RunEventDrainLive: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
|
|
145
|
-
interface RunEventStream {
|
|
146
|
-
readonly queue: Queue.Queue<RunEvent, Cause.Done>;
|
|
147
|
-
readonly runId: RunId;
|
|
148
|
-
readonly startedAt: number;
|
|
149
|
-
readonly isOpen: Effect$1.Effect<boolean, never, never>;
|
|
150
|
-
readonly ensureOpen: (openResolved: ResolvedModeInput) => Effect$1.Effect<void, never, never>;
|
|
151
|
-
readonly open: Effect$1.Effect<void, never, never>;
|
|
152
|
-
readonly closeAndDrain: Effect$1.Effect<void, never, never>;
|
|
153
|
-
}
|
|
154
|
-
declare const makeRunEventStream: (resolved: {
|
|
155
|
-
readonly mode: "human" | "machine";
|
|
156
|
-
readonly signal: "agent" | "env" | "flag" | "tool" | "tty";
|
|
157
|
-
}) => Effect$1.Effect<{
|
|
158
|
-
queue: Queue.Queue<FormatRegistryResolved | Heartbeat | HelpRendered | PhaseEntered | PlanKnown | PluginsReported | RunFailed | RunMutantTested | RunStarted | SkippedReported | VerdictReached, Cause.Done<void>>;
|
|
159
|
-
runId: string & import("effect/Brand").Brand<"RunId">;
|
|
160
|
-
startedAt: number;
|
|
161
|
-
isOpen: Effect$1.Effect<boolean, never, never>;
|
|
162
|
-
ensureOpen: (openResolved: ResolvedModeInput) => Effect$1.Effect<void, never, never>;
|
|
163
|
-
open: Effect$1.Effect<void, never, never>;
|
|
164
|
-
closeAndDrain: Effect$1.Effect<void, never, never>;
|
|
165
|
-
}, never, RunEventDrain | Stdio.Stdio>;
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/IncrementalReport.schema.d.ts
|
|
168
|
-
declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
|
|
169
|
-
readonly incrementalVersion: S.String;
|
|
170
|
-
readonly schemaVersion: S.String;
|
|
171
|
-
readonly thresholds: S.Struct<{
|
|
172
|
-
readonly high: S.Finite;
|
|
173
|
-
readonly low: S.Finite;
|
|
174
|
-
}>;
|
|
175
|
-
readonly files: S.$Record<S.String, S.Struct<{
|
|
176
|
-
readonly language: S.String;
|
|
177
|
-
readonly source: S.String;
|
|
178
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
179
|
-
readonly id: S.String;
|
|
180
|
-
readonly mutatorName: S.String;
|
|
181
|
-
readonly replacement: S.String;
|
|
182
|
-
readonly location: S.declare<{
|
|
183
|
-
readonly start: {
|
|
184
|
-
readonly line: number;
|
|
185
|
-
readonly column: number;
|
|
186
|
-
};
|
|
187
|
-
readonly end: {
|
|
188
|
-
readonly line: number;
|
|
189
|
-
readonly column: number;
|
|
190
|
-
};
|
|
191
|
-
}, {
|
|
192
|
-
readonly start: {
|
|
193
|
-
readonly line: number;
|
|
194
|
-
readonly column: number;
|
|
195
|
-
};
|
|
196
|
-
readonly end: {
|
|
197
|
-
readonly line: number;
|
|
198
|
-
readonly column: number;
|
|
199
|
-
};
|
|
200
|
-
}>;
|
|
201
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
202
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
203
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
204
|
-
readonly static: S.optional<S.Boolean>;
|
|
205
|
-
readonly statusReason: S.optional<S.String>;
|
|
206
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
207
|
-
readonly description: S.optional<S.String>;
|
|
208
|
-
readonly duration: S.optional<S.Finite>;
|
|
209
|
-
}>>;
|
|
210
|
-
readonly formatIdentity: S.optional<S.Struct<{
|
|
211
|
-
readonly formatId: S.String;
|
|
212
|
-
readonly ownerModule: S.String;
|
|
213
|
-
readonly ownerVersion: S.String;
|
|
214
|
-
}>>;
|
|
215
|
-
}>>;
|
|
216
|
-
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
217
|
-
readonly source: S.optional<S.String>;
|
|
218
|
-
readonly tests: S.$Array<S.Struct<{
|
|
219
|
-
readonly id: S.String;
|
|
220
|
-
readonly name: S.String;
|
|
221
|
-
readonly location: S.optional<S.declare<{
|
|
222
|
-
readonly start: {
|
|
223
|
-
readonly line: number;
|
|
224
|
-
readonly column: number;
|
|
225
|
-
};
|
|
226
|
-
readonly end?: {
|
|
227
|
-
readonly line: number;
|
|
228
|
-
readonly column: number;
|
|
229
|
-
} | undefined;
|
|
230
|
-
}, {
|
|
231
|
-
readonly start: {
|
|
232
|
-
readonly line: number;
|
|
233
|
-
readonly column: number;
|
|
234
|
-
};
|
|
235
|
-
readonly end?: {
|
|
236
|
-
readonly line: number;
|
|
237
|
-
readonly column: number;
|
|
238
|
-
} | undefined;
|
|
239
|
-
}>>;
|
|
240
|
-
}>>;
|
|
241
|
-
}>>>;
|
|
242
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
243
|
-
type IncrementalReport = S.Schema.Type<typeof IncrementalReportSchema>;
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region src/Project.schema.d.ts
|
|
246
|
-
interface ProjectFile extends mod_d_exports$2.FileDescription {
|
|
247
|
-
readonly name: string;
|
|
248
|
-
readonly mutate: mod_d_exports$2.MutateDescription;
|
|
249
|
-
readonly content: string | undefined;
|
|
250
|
-
readonly originalContent: string | undefined;
|
|
251
|
-
}
|
|
252
|
-
interface Project {
|
|
253
|
-
readonly fileDescriptions: mod_d_exports$2.FileDescriptions;
|
|
254
|
-
readonly incrementalReport: IncrementalReport | undefined;
|
|
255
|
-
readonly testFiles: readonly string[];
|
|
256
|
-
readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
|
|
257
|
-
readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
|
|
258
|
-
}
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/project-files.service.d.ts
|
|
261
|
-
type ContentPair = readonly [ProjectFile, string];
|
|
262
|
-
type PathPair = readonly [string, string];
|
|
263
|
-
interface InPlaceTarget {
|
|
264
|
-
readonly backupDirectory: string;
|
|
265
|
-
readonly basePath: string;
|
|
266
|
-
}
|
|
267
|
-
interface SandboxTarget {
|
|
268
|
-
readonly workingDirectory: string;
|
|
269
|
-
readonly basePath: string;
|
|
270
|
-
}
|
|
271
|
-
interface ProjectFilesShape {
|
|
272
|
-
readonly read: (file: ProjectFile) => Effect$1.Effect<string, PlatformError>;
|
|
273
|
-
readonly readAll: (files: Iterable<ProjectFile>) => Effect$1.Effect<readonly ContentPair[], PlatformError>;
|
|
274
|
-
readonly readAllOriginal: (files: Iterable<ProjectFile>) => Effect$1.Effect<readonly ContentPair[], PlatformError>;
|
|
275
|
-
readonly writeAllInPlace: (files: Iterable<readonly [string, ProjectFile]>, target: InPlaceTarget) => Effect$1.Effect<readonly PathPair[], PlatformError>;
|
|
276
|
-
readonly writeAllToSandbox: (files: Iterable<readonly [string, ProjectFile]>, target: SandboxTarget) => Effect$1.Effect<readonly PathPair[], PlatformError>;
|
|
277
|
-
}
|
|
278
|
-
declare const ProjectFiles_base: Context.ServiceClass<ProjectFiles, "@systemfsoftware/stryker-js/project-files.service/ProjectFiles", ProjectFilesShape>;
|
|
279
|
-
declare class ProjectFiles extends ProjectFiles_base {
|
|
280
|
-
static readonly layer: Layer.Layer<ProjectFiles, never, FileSystem.FileSystem | Path.Path>;
|
|
281
|
-
}
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/spawned-socket-worker.handle.d.ts
|
|
284
|
-
declare const TypeId$1: unique symbol;
|
|
285
|
-
type TypeId$1 = typeof TypeId$1;
|
|
286
|
-
interface SpawnedSocketWorkerSlot {
|
|
287
|
-
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
288
|
-
}
|
|
289
|
-
declare const SpawnedSocketWorker: Handle.Definition<typeof TypeId$1, {
|
|
290
|
-
readonly pid: number;
|
|
291
|
-
readonly exited: Effect$1.Effect<never, WorkerExit>;
|
|
292
|
-
}, SpawnedSocketWorkerSlot, never>;
|
|
293
|
-
type SpawnedSocketWorker = Handle.Of<typeof SpawnedSocketWorker>;
|
|
294
|
-
declare const make: (worker: {
|
|
295
|
-
readonly pid: number;
|
|
296
|
-
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
297
|
-
readonly exited: Effect$1.Effect<never, WorkerExit>;
|
|
298
|
-
}) => SpawnedSocketWorker;
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region src/WorkerLauncher.service.d.ts
|
|
301
|
-
interface WorkerSpawnParams {
|
|
302
|
-
readonly entrypoint: string;
|
|
303
|
-
readonly workingDirectory: string;
|
|
304
|
-
readonly execArgv: readonly string[];
|
|
305
|
-
readonly optionsJson: string;
|
|
306
|
-
readonly tempDirPrefix: string;
|
|
307
|
-
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
308
|
-
}
|
|
309
|
-
interface WorkerLauncherShape {
|
|
310
|
-
readonly spawn: (params: WorkerSpawnParams) => Effect$1.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
|
|
311
|
-
}
|
|
312
|
-
declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher.service/WorkerLauncher", WorkerLauncherShape>;
|
|
313
|
-
declare class WorkerLauncher extends WorkerLauncher_base {}
|
|
314
|
-
//#endregion
|
|
315
|
-
//#region src/reporter-stream.service.d.ts
|
|
316
|
-
declare const ReporterStageTypeId: unique symbol;
|
|
317
|
-
/**
|
|
318
|
-
* An attached reporter stage, opaque at the engine boundary: the published
|
|
319
|
-
* phase types carry this handle so the attachment machinery (queues, fibers,
|
|
320
|
-
* the state latch) never reaches an adopter's compiler. Constructed only by
|
|
321
|
-
* `attachReporterFactories`.
|
|
322
|
-
*/
|
|
323
|
-
interface ReporterStage {
|
|
324
|
-
readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
|
|
325
|
-
}
|
|
326
|
-
declare const REPORTER_EVENT_BATCH_BOUND = 128;
|
|
327
|
-
type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof mod_d_exports$3.ReporterRpcs>, RpcClientError>;
|
|
328
|
-
declare const reporterWorkerFactory: (client: ReporterWorkerClient) => mod_d_exports$5.ReporterFactory;
|
|
329
|
-
interface SpawnReporterWorkerParams {
|
|
330
|
-
readonly entrypoint: string;
|
|
331
|
-
readonly projectBasePath: string;
|
|
332
|
-
readonly execArgv: readonly string[];
|
|
333
|
-
readonly options: mod_d_exports$2$1.StrykerOptions;
|
|
334
|
-
readonly tempDirPrefix: string;
|
|
335
|
-
}
|
|
336
|
-
declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
337
|
-
//#endregion
|
|
338
|
-
//#region src/test-coverage.schema.d.ts
|
|
339
|
-
interface TestCoverage {
|
|
340
|
-
readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<mod_d_exports$6.TestResult>>;
|
|
341
|
-
readonly testsById: MutableHashMap.MutableHashMap<string, mod_d_exports$6.TestResult>;
|
|
342
|
-
readonly staticCoverage: mod_d_exports$3$1.CoverageData | undefined;
|
|
343
|
-
readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
|
|
344
|
-
}
|
|
345
|
-
//#endregion
|
|
346
|
-
//#region src/Sandbox.handle.d.ts
|
|
347
|
-
declare const TypeId: unique symbol;
|
|
348
|
-
type TypeId = typeof TypeId;
|
|
349
|
-
declare const SandboxHandle: Handle.Definition<typeof TypeId, {
|
|
350
|
-
readonly workingDirectory: string;
|
|
351
|
-
}, {
|
|
352
|
-
readonly fileMap: Map<string, string>;
|
|
353
|
-
readonly basePath: string;
|
|
354
|
-
readonly pathService: Path.Path;
|
|
355
|
-
}, never>;
|
|
356
|
-
type SandboxHandle = Handle.Of<typeof SandboxHandle>;
|
|
357
|
-
//#endregion
|
|
358
|
-
//#region src/Plugins.schema.d.ts
|
|
359
|
-
type PluginKind = mod_d_exports$3.PluginKind;
|
|
360
|
-
interface WorkerPluginDescriptor<K extends mod_d_exports$3.WorkerPluginKind = mod_d_exports$3.WorkerPluginKind> {
|
|
361
|
-
readonly kind: K;
|
|
362
|
-
readonly name: string;
|
|
363
|
-
readonly workerEntry: string;
|
|
364
|
-
}
|
|
365
|
-
interface EvaluatorPluginDescriptor {
|
|
366
|
-
readonly kind: 'Evaluator';
|
|
367
|
-
readonly name: string;
|
|
368
|
-
}
|
|
369
|
-
type AnyWorkerPluginDescriptor = { [K in mod_d_exports$3.WorkerPluginKind]: WorkerPluginDescriptor<K>; }[mod_d_exports$3.WorkerPluginKind];
|
|
370
|
-
type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
|
|
371
|
-
type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
|
|
372
|
-
readonly kind: K;
|
|
373
|
-
}>;
|
|
374
|
-
type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
|
|
375
|
-
interface WorkerPluginSource<K extends mod_d_exports$3.WorkerPluginKind = mod_d_exports$3.WorkerPluginKind> {
|
|
376
|
-
readonly kind: K;
|
|
377
|
-
readonly name: string;
|
|
378
|
-
readonly modulePath: string;
|
|
379
|
-
readonly workerEntry: string;
|
|
380
|
-
}
|
|
381
|
-
interface EvaluatorPluginSource {
|
|
382
|
-
readonly kind: 'Evaluator';
|
|
383
|
-
readonly name: string;
|
|
384
|
-
readonly modulePath: string;
|
|
385
|
-
}
|
|
386
|
-
type AnyWorkerPluginSource = { [K in mod_d_exports$3.WorkerPluginKind]: WorkerPluginSource<K>; }[mod_d_exports$3.WorkerPluginKind];
|
|
387
|
-
type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
|
|
388
|
-
interface LoadedPlugins<A = unknown> {
|
|
389
|
-
readonly schemaContributions: readonly Record<string, A>[];
|
|
390
|
-
readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
|
|
391
|
-
readonly pluginModulePaths: readonly string[];
|
|
392
|
-
readonly pluginSources: readonly PluginSource[];
|
|
393
|
-
readonly ignorers: readonly Ignorer[];
|
|
394
|
-
readonly frameworks: readonly {
|
|
395
|
-
readonly moduleName: string;
|
|
396
|
-
readonly framework: Framework;
|
|
397
|
-
}[];
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/reporter-output.service.d.ts
|
|
401
|
-
type OutputChannel = 'stdout' | 'stderr';
|
|
402
|
-
interface ReporterOutputShape {
|
|
403
|
-
readonly write: (channel: OutputChannel, chunks: readonly string[]) => Effect$1.Effect<void, PlatformError>;
|
|
404
|
-
}
|
|
405
|
-
declare const ReporterOutput_base: Context.ServiceClass<ReporterOutput, "@systemfsoftware/stryker-js/reporter-output.service/ReporterOutput", ReporterOutputShape>;
|
|
406
|
-
declare class ReporterOutput extends ReporterOutput_base {
|
|
407
|
-
static readonly layer: Layer.Layer<ReporterOutput, never, Stdio.Stdio>;
|
|
408
|
-
}
|
|
409
|
-
//#endregion
|
|
410
|
-
//#region src/reporter.service.d.ts
|
|
411
|
-
interface ReporterShape {
|
|
412
|
-
readonly builtin: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
|
|
413
|
-
}
|
|
414
|
-
declare const Reporter_base: Context.ServiceClass<Reporter, "@systemfsoftware/stryker-js/reporter.service/Reporter", ReporterShape>;
|
|
415
|
-
declare class Reporter extends Reporter_base {
|
|
416
|
-
static readonly layer: Layer.Layer<Reporter, never, ReporterOutput | FileSystem.FileSystem | Path.Path>;
|
|
417
|
-
}
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/run/explain-file-skip.workflow.d.ts
|
|
420
|
-
declare const FrameworkClaimant: S.Struct<{
|
|
421
|
-
readonly package: S.String;
|
|
422
|
-
readonly extensions: S.$Array<S.String>;
|
|
423
|
-
}>;
|
|
424
|
-
type FrameworkClaimant = S.Schema.Type<typeof FrameworkClaimant>;
|
|
425
|
-
//#endregion
|
|
426
|
-
//#region src/run/prepare.cell.d.ts
|
|
427
|
-
interface PrepareDone {
|
|
428
|
-
readonly project: Project;
|
|
429
|
-
readonly loadedPlugins: LoadedPlugins;
|
|
430
|
-
readonly ignorers: readonly Ignorer[];
|
|
431
|
-
readonly formatRegistry: mod_d_exports$1.FormatRegistry;
|
|
432
|
-
readonly options: mod_d_exports$2$1.StrykerOptions;
|
|
433
|
-
readonly temporaryDirectoryPath: string;
|
|
434
|
-
readonly reporterStage: ReporterStage;
|
|
435
|
-
readonly frameworkClaimants: readonly FrameworkClaimant[];
|
|
436
|
-
}
|
|
437
|
-
interface PrepareExecutorArgs {
|
|
438
|
-
cliOptions: mod_d_exports$2$1.PartialStrykerOptions;
|
|
439
|
-
targetMutatePatterns: string[] | undefined;
|
|
440
|
-
}
|
|
441
|
-
//#endregion
|
|
442
|
-
//#region src/run/instrument.cell.d.ts
|
|
443
|
-
interface InstrumentDone extends PrepareDone {
|
|
444
|
-
readonly mutants: readonly mod_d_exports$3$1.Mutant[];
|
|
445
|
-
readonly sandbox: SandboxHandle;
|
|
446
|
-
readonly concurrency: {
|
|
447
|
-
readonly testRunners: number;
|
|
448
|
-
readonly checkers: number;
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
//#endregion
|
|
452
|
-
//#region src/run/dry-run.cell.d.ts
|
|
453
|
-
interface DryRunDone extends InstrumentDone {
|
|
454
|
-
readonly dryRunResult: mod_d_exports$6.CompleteDryRunResult;
|
|
455
|
-
readonly testCoverage: TestCoverage;
|
|
456
|
-
readonly timeOverhead: EffectDuration.Duration;
|
|
457
|
-
}
|
|
458
|
-
//#endregion
|
|
459
|
-
//#region src/run/mutation-test.cell.d.ts
|
|
460
|
-
interface MutationTestDone {
|
|
461
|
-
readonly results: readonly mod_d_exports$3$1.RunMutantResult[];
|
|
462
|
-
readonly verdict: mod_d_exports$3.ExitClass | null;
|
|
463
|
-
}
|
|
464
|
-
//#endregion
|
|
465
|
-
//#region src/mutation-reporting.service.d.ts
|
|
466
|
-
interface MutationReportingInput {
|
|
467
|
-
readonly results: readonly mod_d_exports$3$1.RunMutantResult[];
|
|
468
|
-
readonly options: mod_d_exports$2$1.StrykerOptions;
|
|
469
|
-
readonly project: Project;
|
|
470
|
-
readonly testCoverage: TestCoverage;
|
|
471
|
-
readonly runId: string;
|
|
472
|
-
readonly resolvedMode: ResolvedMode;
|
|
473
|
-
readonly basePath: string;
|
|
474
|
-
readonly reporterStage: ReporterStage;
|
|
475
|
-
readonly formatRegistry: mod_d_exports$1.FormatRegistry;
|
|
476
|
-
}
|
|
477
|
-
interface MutationReportingService {
|
|
478
|
-
readonly reportCheckFailure: (mutant: mod_d_exports$3$1.MutantTestCoverage, result: Exclude<mod_d_exports.CheckResult, mod_d_exports.PassedCheckResult>) => Effect$1.Effect<mod_d_exports$3$1.RunMutantResult>;
|
|
479
|
-
readonly reportMutantRunResult: (mutant: mod_d_exports$3$1.MutantTestCoverage, result: mod_d_exports$6.MutantRunResult) => Effect$1.Effect<mod_d_exports$3$1.RunMutantResult>;
|
|
480
|
-
readonly reportAll: (input: MutationReportingInput) => Effect$1.Effect<MutationTestDone, PlatformError>;
|
|
481
|
-
readonly checkpoint: (input: MutationReportingInput) => Effect$1.Effect<void, PlatformError>;
|
|
482
|
-
}
|
|
483
|
-
declare const MutationReporting_base: Context.ServiceClass<MutationReporting, "@systemfsoftware/stryker-js/mutation-reporting.service/MutationReporting", MutationReportingService>;
|
|
484
|
-
declare class MutationReporting extends MutationReporting_base {
|
|
485
|
-
static readonly layer: Layer.Layer<MutationReporting, never, FileSystem.FileSystem | Path.Path | RunEvents | ProjectFiles>;
|
|
486
|
-
}
|
|
487
|
-
//#endregion
|
|
488
|
-
//#region src/Worker.service.d.ts
|
|
489
|
-
interface IdGeneratorShape {
|
|
490
|
-
readonly next: Effect$1.Effect<number>;
|
|
491
|
-
}
|
|
492
|
-
declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker.service/IdGenerator", IdGeneratorShape>;
|
|
493
|
-
declare class IdGenerator extends IdGenerator_base {
|
|
494
|
-
static readonly layer: Layer.Layer<IdGenerator, never, never>;
|
|
495
|
-
}
|
|
496
|
-
//#endregion
|
|
497
|
-
//#region src/run/StageServices.service.d.ts
|
|
498
|
-
type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | MutationReporting | Path.Path | ProjectFiles | Reporter | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
|
|
499
|
-
type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
|
|
500
|
-
type RunStageServices = ProjectFiles | Reporter | RunEnvironment | RunEvents | IdGenerator | MutationReporting | Scope.Scope;
|
|
501
|
-
type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
|
|
502
|
-
//#endregion
|
|
503
|
-
//#region src/run/RunEnvironment.service.d.ts
|
|
504
|
-
interface RunEnvironmentShape {
|
|
505
|
-
readonly runId: string;
|
|
506
|
-
readonly resolvedMode: ResolvedMode;
|
|
507
|
-
readonly runStartedAt: number;
|
|
508
|
-
readonly basePath: string;
|
|
509
|
-
readonly builtinReporters: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
|
|
510
|
-
readonly allowConsoleColors: boolean;
|
|
511
|
-
}
|
|
512
|
-
declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment.service/RunEnvironment", RunEnvironmentShape>;
|
|
513
|
-
declare class RunEnvironment extends RunEnvironment_base {
|
|
514
|
-
static readonly stage: {
|
|
515
|
-
(env: RunEnvironmentShape, events?: Queue.Queue<RunEvent, Cause.Done>): Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
516
|
-
(events?: Queue.Queue<RunEvent, Cause.Done>): (env: RunEnvironmentShape) => Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
517
|
-
};
|
|
518
|
-
static readonly forStream: {
|
|
519
|
-
(mode: ResolvedMode, stream: RunEventStream, host: {
|
|
520
|
-
readonly noColor?: string | undefined;
|
|
521
|
-
readonly builtinReporters: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
|
|
522
|
-
}): Effect$1.Effect<RunEnvironmentShape, PlatformError, FileSystem.FileSystem>;
|
|
523
|
-
(stream: RunEventStream, host: {
|
|
524
|
-
readonly noColor?: string | undefined;
|
|
525
|
-
readonly builtinReporters: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
|
|
526
|
-
}): (mode: ResolvedMode) => Effect$1.Effect<RunEnvironmentShape, PlatformError, FileSystem.FileSystem>;
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
//#endregion
|
|
530
|
-
export { ConfigFileNotFoundError as $, ReporterWorkerClient as A, ProjectFile as B, PluginSource as C, TestCoverage as D, SandboxHandle as E, WorkerLauncherShape as F, makeRunEventStream as G, RunEventDrain as H, WorkerSpawnParams as I, RunIdentity as J, ResolvedModeInput as K, SpawnedSocketWorker as L, reporterWorkerFactory as M, spawnReporterWorker as N, REPORTER_EVENT_BATCH_BOUND as O, WorkerLauncher as P, ConfigFileInvalidError as Q, make as R, PluginKind as S, WorkerPluginSource as T, RunEventDrainLive as U, IncrementalReportSchema as V, RunEventStream as W, StrykerError as X, RunIdentityShape as Y, ConfigError as Z, EvaluatorPluginDescriptor as _, StageServices as a, WorkerBootTimeoutError as at, PluginDescriptor as b, IdGeneratorShape as c, InstrumentDone as d, ConfigFileUnreadableError as et, PrepareDone as f, AnyWorkerPluginSource as g, AnyWorkerPluginDescriptor as h, RunStageServices as i, WorkerBootError as it, SpawnReporterWorkerParams as j, ReporterStage as k, MutationTestDone as l, AnyPluginDescriptor as m, RunEnvironmentShape as n, ChildProcessCrashedError as nt, WiredRunLayer as o, WorkerExit as ot, PrepareExecutorArgs as p, RunEvents as q, EnginePorts as r, OutOfMemoryError as rt, IdGenerator as s, RunEnvironment as t, ConfigFileUnsupportedError as tt, DryRunDone as u, EvaluatorPluginSource as v, WorkerPluginDescriptor as w, PluginDescriptorOf as x, LoadedPlugins as y, Project as z };
|