@systemfsoftware/stryker-js 11.0.0 → 12.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 +21 -0
- package/README.md +18 -18
- package/dist/{dist-ClUhPgb6.mjs → Run.schema-BxsyHwHr.mjs} +2941 -2700
- package/dist/{Run.schema-CUpTIyrj.d.mts → Run.schema-D43Nx5kI.d.mts} +1 -1
- package/dist/{RunEnvironment.service-zgwzyXpO.d.mts → RunEnvironment.service-pCzdC0Sy.d.mts} +51 -43
- package/dist/config.d.mts +15 -3
- package/dist/config.mjs +7 -2
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{index-CMCCQdTd.d.mts → index-f-U3oZaJ.d.mts} +4 -5
- package/dist/index.d.mts +22 -20
- package/dist/index.mjs +4 -4
- package/dist/main.mjs +6940 -6391
- package/dist/merge-config-ByZJPeQZ.mjs +32 -0
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{run-stages.cell-CPpkn7og.mjs → run-stages.cell-MyhsNxH2.mjs} +605 -424
- package/dist/stryker-config.schema-GS_4_5gX.d.mts +18 -0
- package/package.json +15 -20
- package/dist/Run.schema-B_qdjbe9.mjs +0 -226
- package/dist/stryker-config.schema-CCnDtVuW.mjs +0 -82
- package/dist/stryker-config.schema-lr7GMjpY.d.mts +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-
|
|
1
|
+
import { i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-f-U3oZaJ.mjs";
|
|
2
2
|
import * as S from "effect/Schema";
|
|
3
3
|
//#region src/run-event.schema.d.ts
|
|
4
4
|
declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
package/dist/{RunEnvironment.service-zgwzyXpO.d.mts → RunEnvironment.service-pCzdC0Sy.d.mts}
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { a as mod_d_exports$5, c as mod_d_exports$2, d as Ignorer, i as mod_d_exports$4, 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-
|
|
2
|
-
import { A as VerdictReached, D as SkippedReported, _ as PluginsReported, b as RunFailed, c as Heartbeat, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, p as PhaseEntered, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-
|
|
3
|
-
import { Cell, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
1
|
+
import { a as mod_d_exports$5, c as mod_d_exports$2, d as Ignorer, i as mod_d_exports$4, 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-f-U3oZaJ.mjs";
|
|
2
|
+
import { A as VerdictReached, D as SkippedReported, _ as PluginsReported, b as RunFailed, c as Heartbeat, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, p as PhaseEntered, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-D43Nx5kI.mjs";
|
|
3
|
+
import { Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
4
4
|
import "effect/Option";
|
|
5
|
-
import
|
|
5
|
+
import "effect/Result";
|
|
6
6
|
import * as S from "effect/Schema";
|
|
7
7
|
import * as Effect$1 from "effect/Effect";
|
|
8
|
-
import { Pipeable } from "effect/Pipeable";
|
|
9
8
|
import * as Context from "effect/Context";
|
|
10
9
|
import { Schema } from "effect";
|
|
10
|
+
import "effect/Exit";
|
|
11
11
|
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
12
12
|
import * as Cause from "effect/Cause";
|
|
13
13
|
import * as Path from "effect/Path";
|
|
14
14
|
import * as FileSystem from "effect/FileSystem";
|
|
15
|
-
import "effect/Exit";
|
|
16
15
|
import * as Stream from "effect/Stream";
|
|
17
16
|
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
|
|
18
17
|
import * as EffectDuration from "effect/Duration";
|
|
@@ -103,16 +102,6 @@ declare class ConfigError extends ConfigError_base {
|
|
|
103
102
|
readonly exitClass: 'ConfigError';
|
|
104
103
|
}
|
|
105
104
|
//#endregion
|
|
106
|
-
//#region src/run-events.service.d.ts
|
|
107
|
-
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>>>;
|
|
108
|
-
declare class RunEvents extends RunEvents_base {}
|
|
109
|
-
interface RunIdentityShape {
|
|
110
|
-
readonly runId: string;
|
|
111
|
-
readonly basePath: string;
|
|
112
|
-
}
|
|
113
|
-
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/run-events.service/RunIdentity", RunIdentityShape>;
|
|
114
|
-
declare class RunIdentity extends RunIdentity_base {}
|
|
115
|
-
//#endregion
|
|
116
105
|
//#region src/output-mode.schema.d.ts
|
|
117
106
|
/**
|
|
118
107
|
* Mode type vocabulary shared with the CLI package. Runtime resolution
|
|
@@ -129,13 +118,6 @@ interface ResolvedMode {
|
|
|
129
118
|
readonly stdoutIsTTY: boolean;
|
|
130
119
|
}
|
|
131
120
|
//#endregion
|
|
132
|
-
//#region src/stryker-error.schema.d.ts
|
|
133
|
-
declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
|
|
134
|
-
readonly message: Schema.String;
|
|
135
|
-
readonly cause: Schema.optional<Schema.Unknown>;
|
|
136
|
-
}>, import("effect/Cause").YieldableError>;
|
|
137
|
-
declare class StrykerError extends StrykerError_base {}
|
|
138
|
-
//#endregion
|
|
139
121
|
//#region src/frame-run-event.workflow.d.ts
|
|
140
122
|
interface ResolvedModeInput {
|
|
141
123
|
readonly mode: 'machine' | 'human';
|
|
@@ -174,6 +156,16 @@ declare const makeRunEventStream: (resolved: ResolvedModeInput) => Effect$1.Effe
|
|
|
174
156
|
closeAndDrain: Effect$1.Effect<void, never, never>;
|
|
175
157
|
}, never, RunEventDrain | Stdio.Stdio>;
|
|
176
158
|
//#endregion
|
|
159
|
+
//#region src/run-events.service.d.ts
|
|
160
|
+
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>>>;
|
|
161
|
+
declare class RunEvents extends RunEvents_base {}
|
|
162
|
+
interface RunIdentityShape {
|
|
163
|
+
readonly runId: string;
|
|
164
|
+
readonly basePath: string;
|
|
165
|
+
}
|
|
166
|
+
declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/run-events.service/RunIdentity", RunIdentityShape>;
|
|
167
|
+
declare class RunIdentity extends RunIdentity_base {}
|
|
168
|
+
//#endregion
|
|
177
169
|
//#region src/Project.schema.d.ts
|
|
178
170
|
interface ProjectFile extends mod_d_exports$2.FileDescription {
|
|
179
171
|
readonly name: string;
|
|
@@ -213,15 +205,16 @@ declare class ProjectFiles extends ProjectFiles_base {
|
|
|
213
205
|
}
|
|
214
206
|
//#endregion
|
|
215
207
|
//#region src/spawned-socket-worker.handle.d.ts
|
|
216
|
-
declare const TypeId: unique symbol;
|
|
217
|
-
type TypeId = typeof TypeId;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
208
|
+
declare const TypeId$1: unique symbol;
|
|
209
|
+
type TypeId$1 = typeof TypeId$1;
|
|
210
|
+
interface SpawnedSocketWorkerSlot {
|
|
211
|
+
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
212
|
+
}
|
|
213
|
+
declare const SpawnedSocketWorker: Handle.Definition<typeof TypeId$1, {
|
|
222
214
|
readonly pid: number;
|
|
223
215
|
readonly exited: Effect$1.Effect<never, WorkerExit>;
|
|
224
|
-
}
|
|
216
|
+
}, SpawnedSocketWorkerSlot, never>;
|
|
217
|
+
type SpawnedSocketWorker = Handle.Of<typeof SpawnedSocketWorker>;
|
|
225
218
|
declare const make: (worker: {
|
|
226
219
|
readonly pid: number;
|
|
227
220
|
readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
@@ -266,13 +259,8 @@ interface SpawnReporterWorkerParams {
|
|
|
266
259
|
}
|
|
267
260
|
declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
268
261
|
//#endregion
|
|
269
|
-
//#region src/
|
|
270
|
-
|
|
271
|
-
readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<mod_d_exports$6.TestResult>>;
|
|
272
|
-
readonly testsById: MutableHashMap.MutableHashMap<string, mod_d_exports$6.TestResult>;
|
|
273
|
-
readonly staticCoverage: mod_d_exports$3$1.CoverageData | undefined;
|
|
274
|
-
readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
|
|
275
|
-
}
|
|
262
|
+
//#region src/TestRunner.schema.d.ts
|
|
263
|
+
type PooledTestRunnerError = mod_d_exports$6.TestRunnerFailed | ChildProcessCrashedError | OutOfMemoryError;
|
|
276
264
|
//#endregion
|
|
277
265
|
//#region src/Worker.service.d.ts
|
|
278
266
|
interface IdGeneratorShape {
|
|
@@ -283,12 +271,32 @@ declare class IdGenerator extends IdGenerator_base {
|
|
|
283
271
|
static readonly layer: Layer.Layer<IdGenerator, never, never>;
|
|
284
272
|
}
|
|
285
273
|
//#endregion
|
|
274
|
+
//#region src/test-coverage.schema.d.ts
|
|
275
|
+
interface TestCoverage {
|
|
276
|
+
readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<mod_d_exports$6.TestResult>>;
|
|
277
|
+
readonly testsById: MutableHashMap.MutableHashMap<string, mod_d_exports$6.TestResult>;
|
|
278
|
+
readonly staticCoverage: mod_d_exports$3$1.CoverageData | undefined;
|
|
279
|
+
readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
|
|
280
|
+
}
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/stryker-error.schema.d.ts
|
|
283
|
+
declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
|
|
284
|
+
readonly message: Schema.String;
|
|
285
|
+
readonly cause: Schema.optional<Schema.Unknown>;
|
|
286
|
+
}>, import("effect/Cause").YieldableError>;
|
|
287
|
+
declare class StrykerError extends StrykerError_base {}
|
|
288
|
+
//#endregion
|
|
286
289
|
//#region src/Sandbox.handle.d.ts
|
|
287
|
-
|
|
290
|
+
declare const TypeId: unique symbol;
|
|
291
|
+
type TypeId = typeof TypeId;
|
|
292
|
+
declare const SandboxHandle: Handle.Definition<typeof TypeId, {
|
|
288
293
|
readonly workingDirectory: string;
|
|
289
|
-
|
|
290
|
-
readonly
|
|
291
|
-
|
|
294
|
+
}, {
|
|
295
|
+
readonly fileMap: Map<string, string>;
|
|
296
|
+
readonly basePath: string;
|
|
297
|
+
readonly pathService: Path.Path;
|
|
298
|
+
}, never>;
|
|
299
|
+
type SandboxHandle = Handle.Of<typeof SandboxHandle>;
|
|
292
300
|
//#endregion
|
|
293
301
|
//#region src/Plugins.schema.d.ts
|
|
294
302
|
type PluginKind = mod_d_exports$3.WorkerPluginKind | 'Evaluator';
|
|
@@ -391,7 +399,7 @@ interface DryRunDone extends InstrumentDone {
|
|
|
391
399
|
readonly timeOverhead: EffectDuration.Duration;
|
|
392
400
|
}
|
|
393
401
|
//#endregion
|
|
394
|
-
//#region src/run/mutation-test.
|
|
402
|
+
//#region src/run/mutation-test.parts.d.ts
|
|
395
403
|
interface MutationTestDone {
|
|
396
404
|
readonly results: readonly mod_d_exports$3$1.RunMutantResult[];
|
|
397
405
|
readonly verdict: mod_d_exports$3.ExitClass | null;
|
|
@@ -453,4 +461,4 @@ declare class RunEnvironment extends RunEnvironment_base {
|
|
|
453
461
|
};
|
|
454
462
|
}
|
|
455
463
|
//#endregion
|
|
456
|
-
export {
|
|
464
|
+
export { ResolvedMode as $, REPORTER_EVENT_BATCH_BOUND as A, make as B, WorkerPluginSource as C, IdGenerator as D, TestCoverage as E, spawnReporterWorker as F, RunIdentityShape as G, ProjectFile as H, WorkerLauncher as I, RunEventStream as J, RunEventDrain as K, WorkerLauncherShape as L, ReporterWorkerClient as M, SpawnReporterWorkerParams as N, IdGeneratorShape as O, reporterWorkerFactory as P, OutputMode as Q, WorkerSpawnParams as R, WorkerPluginDescriptor as S, StrykerError as T, RunEvents as U, Project as V, RunIdentity as W, ResolvedModeInput as X, makeRunEventStream as Y, ModeSignal as Z, LoadedPlugins as _, StageServices as a, ChildProcessCrashedError as at, PluginKind as b, DryRunDone as c, WorkerBootTimeoutError as ct, PrepareExecutorArgs as d, ConfigError as et, AnyPluginDescriptor as f, EvaluatorPluginSource as g, EvaluatorPluginDescriptor as h, RunStageServices as i, ConfigFileUnsupportedError as it, ReporterStage as j, PooledTestRunnerError as k, InstrumentDone as l, WorkerExit as lt, AnyWorkerPluginSource as m, RunEnvironmentShape as n, ConfigFileNotFoundError as nt, WiredRunLayer as o, OutOfMemoryError as ot, AnyWorkerPluginDescriptor as p, RunEventDrainLive as q, EnginePorts as r, ConfigFileUnreadableError as rt, MutationTestDone as s, WorkerBootError as st, RunEnvironment as t, ConfigFileInvalidError as tt, PrepareDone as u, PluginDescriptor as v, SandboxHandle as w, PluginSource as x, PluginDescriptorOf as y, SpawnedSocketWorker as z };
|
package/dist/config.d.mts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import { n as mod_d_exports$2 } from "./index-
|
|
2
|
-
import { a as StrykerConfig, i as Primitive, n as Immutable, o as StrykerConfigExport, r as ImmutablePrimitive, s as StrykerConfigFn, t as ConfigEnv } from "./stryker-config.schema-
|
|
1
|
+
import { n as mod_d_exports$2 } from "./index-f-U3oZaJ.mjs";
|
|
2
|
+
import { a as StrykerConfig, i as Primitive, n as Immutable, o as StrykerConfigExport, r as ImmutablePrimitive, s as StrykerConfigFn, t as ConfigEnv } from "./stryker-config.schema-GS_4_5gX.mjs";
|
|
3
|
+
//#region src/config/define-config.d.ts
|
|
4
|
+
export declare function defineConfig(config: StrykerConfig): StrykerConfig;
|
|
5
|
+
export declare function defineConfig(config: Promise<StrykerConfig>): Promise<StrykerConfig>;
|
|
6
|
+
export declare function defineConfig(config: StrykerConfigFn): StrykerConfigFn;
|
|
7
|
+
export declare function defineConfig(config: StrykerConfigExport): StrykerConfigExport;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/config/merge-config.d.ts
|
|
10
|
+
export declare const mergeConfig: {
|
|
11
|
+
(overrides: StrykerConfig): (defaults: StrykerConfig) => StrykerConfig;
|
|
12
|
+
(defaults: StrykerConfig, overrides: StrykerConfig): StrykerConfig;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
3
15
|
//#region src/config/mod.d.ts
|
|
4
16
|
export type PartialStrykerOptions = mod_d_exports$2.PartialStrykerOptions;
|
|
5
17
|
export type StrykerOptions = mod_d_exports$2.StrykerOptions;
|
|
6
18
|
//#endregion
|
|
7
|
-
export {
|
|
19
|
+
export type { ConfigEnv, Immutable, ImmutablePrimitive, Primitive, StrykerConfig, StrykerConfigExport, StrykerConfigFn };
|
package/dist/config.mjs
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
1
|
+
import { t as mergeConfig } from "./merge-config-ByZJPeQZ.mjs";
|
|
2
|
+
//#region src/config/define-config.ts
|
|
3
|
+
function defineConfig(config) {
|
|
4
|
+
return config;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { defineConfig, mergeConfig };
|
package/dist/events.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as VerdictReached, C as RunReadError, D as SkippedReported, E as SkippedFileRow, O as VerdictCounts, S as RunPhase, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, d as MutationRunPlan, f as OutputMode, g as PluginFailureReason, h as PlanMutationRunCommand, i as FormatRegistryResolved, j as VerdictThresholds, k as VerdictMutant, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, t as PrepareError, u as ModeSignal, v as RunDecodeError, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-
|
|
1
|
+
import { A as VerdictReached, C as RunReadError, D as SkippedReported, E as SkippedFileRow, O as VerdictCounts, S as RunPhase, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, d as MutationRunPlan, f as OutputMode, g as PluginFailureReason, h as PlanMutationRunCommand, i as FormatRegistryResolved, j as VerdictThresholds, k as VerdictMutant, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, t as PrepareError, u as ModeSignal, v as RunDecodeError, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-D43Nx5kI.mjs";
|
|
2
2
|
export { FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PluginFailureReason, PluginsReported, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, SkippedFileRow, SkippedReported, StageError, type VerdictCounts, type VerdictMutant, VerdictReached, type VerdictThresholds };
|
package/dist/events.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as RunReadError, D as VerdictReached, E as SkippedReported, S as RunPhase, T as SkippedFileRow, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, d as MutationRunPlan, f as OutputMode, g as PluginFailureReason, h as PlanMutationRunCommand, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, t as PrepareError, u as ModeSignal, v as RunDecodeError, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-
|
|
1
|
+
import { C as RunReadError, D as VerdictReached, E as SkippedReported, S as RunPhase, T as SkippedFileRow, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, d as MutationRunPlan, f as OutputMode, g as PluginFailureReason, h as PlanMutationRunCommand, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, t as PrepareError, u as ModeSignal, v as RunDecodeError, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-BxsyHwHr.mjs";
|
|
2
2
|
export { FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PluginFailureReason, PluginsReported, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, SkippedFileRow, SkippedReported, StageError, VerdictReached };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Workflow } from "@systemfsoftware/effect-cell-types";
|
|
1
|
+
import { Handle, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
2
2
|
import * as Option$1 from "effect/Option";
|
|
3
3
|
import "effect/Result";
|
|
4
4
|
import * as S from "effect/Schema";
|
|
5
5
|
import * as Effect$1 from "effect/Effect";
|
|
6
|
-
import "effect/Pipeable";
|
|
7
6
|
import * as Context from "effect/Context";
|
|
8
7
|
import { Schema } from "effect";
|
|
9
8
|
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
@@ -2974,7 +2973,7 @@ interface ParserContext {
|
|
|
2974
2973
|
parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect$1.Effect<ScriptAst, ParseFailed>;
|
|
2975
2974
|
}
|
|
2976
2975
|
//#endregion
|
|
2977
|
-
//#region src/Printer.
|
|
2976
|
+
//#region src/Printer.d.ts
|
|
2978
2977
|
type Printer<T extends Ast = Ast> = (file: T, context: PrinterContext) => string;
|
|
2979
2978
|
interface PrinterContext {
|
|
2980
2979
|
print: Printer<Ast>;
|
|
@@ -3050,7 +3049,7 @@ interface FormatRegistry {
|
|
|
3050
3049
|
readonly entryForExtension: (extension: string) => Option$1.Option<FormatEntry>;
|
|
3051
3050
|
}
|
|
3052
3051
|
//#endregion
|
|
3053
|
-
//#region src/Format.
|
|
3052
|
+
//#region src/Format.d.ts
|
|
3054
3053
|
declare const extensionOf: (fileName: string) => string;
|
|
3055
3054
|
declare const registerEntries: {
|
|
3056
3055
|
(registry: FormatRegistry, additions: readonly FormatEntry[]): FormatRegistry;
|
|
@@ -3058,7 +3057,7 @@ declare const registerEntries: {
|
|
|
3058
3057
|
};
|
|
3059
3058
|
declare const coreFormatRegistry: FormatRegistry;
|
|
3060
3059
|
//#endregion
|
|
3061
|
-
//#region src/FrameworkEntry.
|
|
3060
|
+
//#region src/FrameworkEntry.d.ts
|
|
3062
3061
|
declare const frameworkEntryOf: {
|
|
3063
3062
|
(moduleName: string, framework: Framework): EmbeddedFormatEntry;
|
|
3064
3063
|
(framework: Framework): (moduleName: string) => EmbeddedFormatEntry;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { c as mod_d_exports$2$2, d as Ignorer, f as Node_2, i as mod_d_exports$4$1, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6$1, t as mod_d_exports$6, u as Framework } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { A as VerdictReached, D as SkippedReported, E as SkippedFileRow, S as RunPhase, T as RunTerminalEvent, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, f as OutputMode, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, u as ModeSignal, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-
|
|
4
|
-
import { $ as
|
|
5
|
-
import { Cell, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
1
|
+
import { c as mod_d_exports$2$2, d as Ignorer, f as Node_2, i as mod_d_exports$4$1, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6$1, t as mod_d_exports$6, u as Framework } from "./index-f-U3oZaJ.mjs";
|
|
2
|
+
import { i as Primitive, n as Immutable, r as ImmutablePrimitive } from "./stryker-config.schema-GS_4_5gX.mjs";
|
|
3
|
+
import { A as VerdictReached, D as SkippedReported, E as SkippedFileRow, S as RunPhase, T as RunTerminalEvent, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, f as OutputMode, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, u as ModeSignal, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-D43Nx5kI.mjs";
|
|
4
|
+
import { $ as ResolvedMode, A as REPORTER_EVENT_BATCH_BOUND, B as make, C as WorkerPluginSource, D as IdGenerator, E as TestCoverage, F as spawnReporterWorker, G as RunIdentityShape, H as ProjectFile, I as WorkerLauncher, J as RunEventStream, K as RunEventDrain, L as WorkerLauncherShape, M as ReporterWorkerClient, N as SpawnReporterWorkerParams, O as IdGeneratorShape, P as reporterWorkerFactory, Q as OutputMode$1, R as WorkerSpawnParams, S as WorkerPluginDescriptor, T as StrykerError, U as RunEvents, V as Project, W as RunIdentity, X as ResolvedModeInput, Y as makeRunEventStream, Z as ModeSignal$1, _ as LoadedPlugins, a as StageServices, at as ChildProcessCrashedError, b as PluginKind, c as DryRunDone, ct as WorkerBootTimeoutError, d as PrepareExecutorArgs, et as ConfigError, f as AnyPluginDescriptor, g as EvaluatorPluginSource, h as EvaluatorPluginDescriptor, i as RunStageServices, it as ConfigFileUnsupportedError, j as ReporterStage, k as PooledTestRunnerError, l as InstrumentDone, lt as WorkerExit, m as AnyWorkerPluginSource, n as RunEnvironmentShape, nt as ConfigFileNotFoundError, o as WiredRunLayer, ot as OutOfMemoryError, p as AnyWorkerPluginDescriptor, q as RunEventDrainLive, r as EnginePorts, rt as ConfigFileUnreadableError, s as MutationTestDone, st as WorkerBootError, t as RunEnvironment, tt as ConfigFileInvalidError, u as PrepareDone, v as PluginDescriptor, w as SandboxHandle, x as PluginSource, y as PluginDescriptorOf, z as SpawnedSocketWorker } from "./RunEnvironment.service-pCzdC0Sy.mjs";
|
|
5
|
+
import { Blueprint, Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
6
6
|
import * as S from "effect/Schema";
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
8
|
-
import { Pipeable } from "effect/Pipeable";
|
|
9
8
|
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
10
9
|
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
11
10
|
import "effect/Cause";
|
|
@@ -219,6 +218,10 @@ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
219
218
|
readonly extends: S.optionalKey<S.String>;
|
|
220
219
|
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
221
220
|
//#endregion
|
|
221
|
+
//#region src/config/default-options.d.ts
|
|
222
|
+
declare const createDefaultOptions: Effect.Effect<mod_d_exports$2$1.StrykerOptions>;
|
|
223
|
+
declare const defaultOptions: Effect.Effect<Immutable<mod_d_exports$2$1.StrykerOptions>, never, never>;
|
|
224
|
+
//#endregion
|
|
222
225
|
//#region src/matching.schema.d.ts
|
|
223
226
|
declare const FileMatcher_base: S.Class<FileMatcher, S.Struct<{
|
|
224
227
|
readonly pattern: S.Union<readonly [S.Boolean, S.String]>;
|
|
@@ -429,7 +432,7 @@ declare class LoadConfigCommand extends LoadConfigCommand_base {
|
|
|
429
432
|
static readonly [Workflow.InstrumentationBrand]: {};
|
|
430
433
|
}
|
|
431
434
|
//#endregion
|
|
432
|
-
//#region src/run/load-config.
|
|
435
|
+
//#region src/run/load-config.parts.d.ts
|
|
433
436
|
declare function describeErrors(error: S.SchemaError): readonly string[];
|
|
434
437
|
declare function importModule<A = unknown>(moduleName: string): Effect.Effect<A, StrykerError>;
|
|
435
438
|
declare const initialExtendsStepState: ExtendsStepState;
|
|
@@ -445,6 +448,8 @@ interface ConfigInvocation {
|
|
|
445
448
|
readonly command: 'run' | 'merge-reports';
|
|
446
449
|
readonly mode: OutputMode$1;
|
|
447
450
|
}
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region src/run/load-config.cell.d.ts
|
|
448
453
|
declare const readConfig: {
|
|
449
454
|
(invocation: ConfigInvocation): (cliOptions: mod_d_exports$2$1.PartialStrykerOptions) => Effect.Effect<mod_d_exports$2$1.StrykerOptions, ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError, FileSystem.FileSystem | Path.Path>;
|
|
450
455
|
(cliOptions: mod_d_exports$2$1.PartialStrykerOptions, invocation: ConfigInvocation): Effect.Effect<mod_d_exports$2$1.StrykerOptions, ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError, FileSystem.FileSystem | Path.Path>;
|
|
@@ -452,7 +457,7 @@ declare const readConfig: {
|
|
|
452
457
|
declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
453
458
|
readonly cliOptions: mod_d_exports$2$1.PartialStrykerOptions;
|
|
454
459
|
readonly targetMutatePatterns: readonly string[] | undefined;
|
|
455
|
-
}, ConfigFileInvalidError | ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileUnsupportedError, FileSystem.FileSystem | Path.Path | RunEnvironment | RunEvents,
|
|
460
|
+
}, ConfigFileInvalidError | ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileUnsupportedError, FileSystem.FileSystem | Path.Path | RunEnvironment | RunEvents, import("effect/Schema").Union<readonly [typeof ConfigFromFile, typeof ConfigFromDefaults]>, {
|
|
456
461
|
ConfigFromFile: ({ options }: {
|
|
457
462
|
readonly _tag: "ConfigFromFile";
|
|
458
463
|
readonly options: {
|
|
@@ -834,7 +839,7 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
834
839
|
CommandRejected: ({ issue }: Sandwich.CommandRejected) => Effect.Effect<never, ConfigError, RunEnvironment | RunEvents>;
|
|
835
840
|
}>;
|
|
836
841
|
declare namespace mod_d_exports$1 {
|
|
837
|
-
export { ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, ConfigInvocation, ExtendsRefusalReason, ExtendsStepDecision, ExtendsStepDocument, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepState, ExtendsStepStateSchema, FileMatcher, Immutable, ImmutablePrimitive, ImportedModuleSchema, MergeCommand, MergeResult, Primitive, ReadConfigCommand,
|
|
842
|
+
export { ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, ConfigInvocation, ExtendsRefusalReason, ExtendsStepDecision, ExtendsStepDocument, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepState, ExtendsStepStateSchema, FileMatcher, Immutable, ImmutablePrimitive, ImportedModuleSchema, MergeCommand, MergeResult, Primitive, ReadConfigCommand, ValidationSchemaDocument, createDefaultOptions, decideExtendsStep, defaultOptions, describeErrors, extendsPropertySchema, forkCoreSchema, forkOptionsSchema, importModule, initialExtendsStepState, loadConfigCell, mergeConfigs, readConfig, survivorsPriorReport, validateOptions };
|
|
838
843
|
}
|
|
839
844
|
//#endregion
|
|
840
845
|
//#region src/drivers/node.d.ts
|
|
@@ -912,24 +917,21 @@ declare namespace mod_d_exports$2 {
|
|
|
912
917
|
export { DryRunDone, EnginePorts, IdGenerator, IdGeneratorShape, IncrementalReportSchema, InstrumentDone, MutationTestDone, PrepareDone, PrepareExecutorArgs, Project, ProjectFile, RunEnvironment, RunEnvironmentShape, RunStageServices, SandboxHandle, StageError, StageServices, StrykerError, StrykerRun, TestCoverage, WiredRunLayer, mutationTestCell, nodePlatformLayer, strykerCell };
|
|
913
918
|
}
|
|
914
919
|
//#endregion
|
|
915
|
-
//#region src/TestRunner.schema.d.ts
|
|
916
|
-
type PooledTestRunnerError = mod_d_exports$6$1.TestRunnerFailed | ChildProcessCrashedError | OutOfMemoryError;
|
|
917
|
-
//#endregion
|
|
918
920
|
//#region src/pooled-test-runner.handle.d.ts
|
|
919
921
|
declare const TypeId: unique symbol;
|
|
920
922
|
type TypeId = typeof TypeId;
|
|
921
|
-
|
|
922
|
-
readonly [TypeId]: typeof TypeId;
|
|
923
|
+
declare const PooledTestRunner: Handle.Definition<typeof TypeId, {
|
|
923
924
|
readonly capabilities: Effect.Effect<mod_d_exports$6$1.TestRunnerCapabilities, PooledTestRunnerError>;
|
|
924
925
|
readonly init: Effect.Effect<void, PooledTestRunnerError>;
|
|
925
926
|
readonly dryRun: (options: mod_d_exports$6$1.DryRunOptions) => Effect.Effect<mod_d_exports$6$1.DryRunResult, PooledTestRunnerError>;
|
|
926
927
|
readonly mutantRun: (options: mod_d_exports$3$1.MutantRunOptions) => Effect.Effect<mod_d_exports$6$1.MutantRunResult, PooledTestRunnerError>;
|
|
927
|
-
}
|
|
928
|
+
}, never, never>;
|
|
929
|
+
type PooledTestRunner = Handle.Of<typeof PooledTestRunner>;
|
|
928
930
|
//#endregion
|
|
929
|
-
//#region src/command-runner.
|
|
931
|
+
//#region src/command-runner.blueprint.d.ts
|
|
930
932
|
declare const isCommandRunner: (name: mod_d_exports$2$1.TestRunnerConfig) => name is 'command';
|
|
931
933
|
//#endregion
|
|
932
|
-
//#region src/TestRunner.
|
|
934
|
+
//#region src/TestRunner.blueprint.d.ts
|
|
933
935
|
interface TestRunnerBuildContext {
|
|
934
936
|
readonly options: mod_d_exports$2$1.StrykerOptions;
|
|
935
937
|
readonly fileDescriptions: mod_d_exports$2$2.FileDescriptions;
|
|
@@ -943,7 +945,7 @@ declare const buildTestRunner: {
|
|
|
943
945
|
<ChildRunnerError>(childProcessRunner: Effect.Effect<PooledTestRunner, ChildRunnerError, Scope.Scope | WorkerLauncher>): (context: TestRunnerBuildContext) => Effect.Effect<PooledTestRunner, PooledTestRunnerError | ChildRunnerError, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Scope.Scope | WorkerLauncher>;
|
|
944
946
|
};
|
|
945
947
|
//#endregion
|
|
946
|
-
//#region src/VmRunner.
|
|
948
|
+
//#region src/VmRunner.blueprint.d.ts
|
|
947
949
|
declare const isVmRunner: (name: mod_d_exports$2$1.TestRunnerConfig) => name is 'vm';
|
|
948
950
|
interface VmTestRunnerConfig {
|
|
949
951
|
readonly testFiles: readonly string[];
|
|
@@ -1063,7 +1065,7 @@ declare const ClassifyWorkerExitDecision: S.Union<readonly [typeof WorkerOutOfMe
|
|
|
1063
1065
|
type ClassifyWorkerExitDecision = typeof ClassifyWorkerExitDecision.Type;
|
|
1064
1066
|
declare const classifyWorkerExit: Workflow.MadeWorkflow<typeof ClassifyWorkerExitCommand, S.Union<readonly [typeof WorkerOutOfMemory, typeof WorkerCrashed]>, S.Never>;
|
|
1065
1067
|
//#endregion
|
|
1066
|
-
//#region src/worker-client.
|
|
1068
|
+
//#region src/worker-client.blueprint.d.ts
|
|
1067
1069
|
interface WorkerClientParams<Rpcs extends Rpc.Any> {
|
|
1068
1070
|
readonly rpcs: RpcGroup.RpcGroup<Rpcs>;
|
|
1069
1071
|
readonly options: mod_d_exports$2$1.StrykerOptions;
|
|
@@ -1075,7 +1077,7 @@ interface WorkerClientParams<Rpcs extends Rpc.Any> {
|
|
|
1075
1077
|
}
|
|
1076
1078
|
declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
1077
1079
|
//#endregion
|
|
1078
|
-
//#region src/worker-protocol.
|
|
1080
|
+
//#region src/worker-protocol.blueprint.d.ts
|
|
1079
1081
|
declare const layerWorkerProtocol: (socket: Layer.Layer<Socket.Socket, Socket.SocketError>) => Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
1080
1082
|
declare namespace mod_d_exports$5 {
|
|
1081
1083
|
export { ChildProcessCrashedError, ClassifyWorkerExitCommand, ClassifyWorkerExitDecision, OutOfMemoryError, SpawnedSocketWorker, WorkerBootError, WorkerBootTimeoutError, WorkerClientParams, WorkerExit, WorkerLauncher, WorkerLauncherShape, WorkerSpawnParams, classifyWorkerExit, layerWorkerProtocol, make as makeSpawnedSocketWorker, makeWorkerClient };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { D as VerdictReached, E as SkippedReported, S as RunPhase, T as SkippedFileRow, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-B_qdjbe9.mjs";
|
|
2
|
+
import { D as VerdictReached, E as SkippedReported, S as RunPhase, T as SkippedFileRow, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-BxsyHwHr.mjs";
|
|
3
|
+
import { $ as ExtendsStepResolve, A as VerdictMutant, B as FileMatcher, C as mergeConfigs, D as RunEvents, E as IdGenerator, F as makeWorkerClient, G as ConfigFileUnsupportedError, H as ConfigFileInvalidError, I as WorkerLauncher, J as ConfigDocumentSchema, K as createDefaultOptions, L as make, M as MetricsResultFromReport, N as reporterWorkerFactory, O as RunIdentity, P as spawnReporterWorker, Q as ExtendsStepRefused, R as StrykerError, S as initialExtendsStepState, T as RunEnvironment, U as ConfigFileNotFoundError, V as ConfigError, W as ConfigFileUnreadableError, X as ExtendsStepDone, Y as ExtendsStepDocumentSchema, Z as ExtendsStepRead, _ as readConfig, a as RunEventDrainLive, at as extendsPropertySchema, b as forkCoreSchema, c as isVmRunner, ct as checkGroupedPlans, d as nodePlatformLayer, dt as WorkerBootTimeoutError, et as ExtendsStepStateSchema, f as layerWorkerProtocol, ft as CheckerAnsweredUnrequested, g as loadConfigCell, h as classifyWorkerExit, i as RunEventDrain, it as ReadConfigCommand, j as VerdictThresholds, k as VerdictEnvelope, l as vmTestRunner, lt as ChildProcessCrashedError, m as ClassifyWorkerExitDecision, n as strykerCell, nt as MergeCommand, o as makeRunEventStream, ot as forkOptionsSchema, p as ClassifyWorkerExitCommand, pt as CheckerSkippedRequested, q as defaultOptions, r as buildTestRunner, rt as MergeResult, s as RunEventWireLine, st as survivorsPriorReport, t as mutationTestCell, tt as ImportedModuleSchema, u as IncrementalReportSchema, ut as OutOfMemoryError, v as decideExtendsStep, w as validateOptions, x as importModule, y as describeErrors, z as isCommandRunner } from "./run-stages.cell-MyhsNxH2.mjs";
|
|
5
4
|
//#region src/Checker/mod.ts
|
|
6
5
|
var Checker_exports = /* @__PURE__ */ __exportAll({
|
|
7
6
|
CheckerAnsweredUnrequested: () => CheckerAnsweredUnrequested,
|
|
@@ -28,8 +27,9 @@ var Configuration_exports = /* @__PURE__ */ __exportAll({
|
|
|
28
27
|
MergeCommand: () => MergeCommand,
|
|
29
28
|
MergeResult: () => MergeResult,
|
|
30
29
|
ReadConfigCommand: () => ReadConfigCommand,
|
|
31
|
-
|
|
30
|
+
createDefaultOptions: () => createDefaultOptions,
|
|
32
31
|
decideExtendsStep: () => decideExtendsStep,
|
|
32
|
+
defaultOptions: () => defaultOptions,
|
|
33
33
|
describeErrors: () => describeErrors,
|
|
34
34
|
extendsPropertySchema: () => extendsPropertySchema,
|
|
35
35
|
forkCoreSchema: () => forkCoreSchema,
|