@systemfsoftware/stryker-js 11.0.0 → 12.1.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.
@@ -1,4 +1,4 @@
1
- import { i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-CMCCQdTd.mjs";
1
+ import { i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-CKd1sAni.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"]>;
@@ -240,6 +240,8 @@ declare const PrepareError_base: S.Class<PrepareError, S.TaggedStruct<"PrepareEr
240
240
  readonly stage: S.Literal<"prepare">;
241
241
  readonly reason: S.String;
242
242
  }>, import("effect/Cause").YieldableError>;
243
- declare class PrepareError extends PrepareError_base {}
243
+ declare class PrepareError extends PrepareError_base {
244
+ get message(): string;
245
+ }
244
246
  //#endregion
245
247
  export { VerdictReached as A, RunReadError as C, SkippedReported as D, SkippedFileRow as E, VerdictCounts as O, RunPhase as S, RunTerminalEvent as T, PluginsReported as _, FormatRegistryRow as a, RunFailed as b, Heartbeat as c, MutationRunPlan as d, OutputMode as f, PluginFailureReason as g, PlanMutationRunCommand as h, FormatRegistryResolved as i, VerdictThresholds as j, VerdictMutant as k, HelpRendered as l, PlanKnown as m, StageError as n, FrameworkContributionRow as o, PhaseEntered as p, FormatClaimShadowingRow as r, FrameworkModuleRow as s, PrepareError as t, ModeSignal as u, RunDecodeError as v, RunStarted as w, RunMutantTested as x, RunEvent as y };
@@ -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-CMCCQdTd.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-CUpTIyrj.mjs";
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-CKd1sAni.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-BnUKGQjA.mjs";
3
+ import { Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
4
4
  import "effect/Option";
5
- import * as Result from "effect/Result";
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';
@@ -143,7 +125,7 @@ interface ResolvedModeInput {
143
125
  }
144
126
  //#endregion
145
127
  //#region src/run-event-stream.service.d.ts
146
- type FramedDrain = (framed: Stream.Stream<string, never, never>) => Effect$1.Effect<void, never, never>;
128
+ type FramedDrain = (framed: Stream.Stream<string, never, never>, toStdout: boolean) => Effect$1.Effect<void, never, never>;
147
129
  interface RunEventDrainShape {
148
130
  readonly drainFramed: FramedDrain;
149
131
  readonly setProgressStreamFile: (fileName: string) => Effect$1.Effect<void, never, never>;
@@ -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
- declare const ClientLayerTypeId: unique symbol;
219
- interface SpawnedSocketWorker extends Pipeable {
220
- readonly [TypeId]: typeof TypeId;
221
- readonly [ClientLayerTypeId]: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
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/test-coverage.schema.d.ts
270
- interface TestCoverage {
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
- interface SandboxHandle {
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
- readonly sandboxFileFor: (fileName: string) => Result.Result<string, StrykerError>;
290
- readonly originalFileFor: (sandboxFileName: string) => string;
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.cell.d.ts
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 { ConfigError as $, ReporterWorkerClient as A, ProjectFile as B, WorkerPluginSource as C, TestCoverage as D, IdGeneratorShape as E, WorkerLauncherShape as F, ResolvedModeInput as G, RunEventDrainLive as H, WorkerSpawnParams as I, OutputMode as J, StrykerError as K, SpawnedSocketWorker as L, reporterWorkerFactory as M, spawnReporterWorker as N, REPORTER_EVENT_BATCH_BOUND as O, WorkerLauncher as P, RunIdentityShape as Q, make as R, WorkerPluginDescriptor as S, IdGenerator as T, RunEventStream as U, RunEventDrain as V, makeRunEventStream as W, RunEvents as X, ResolvedMode as Y, RunIdentity as Z, LoadedPlugins as _, StageServices as a, OutOfMemoryError as at, PluginKind as b, DryRunDone as c, WorkerExit as ct, PrepareExecutorArgs as d, ConfigFileInvalidError as et, AnyPluginDescriptor as f, EvaluatorPluginSource as g, EvaluatorPluginDescriptor as h, RunStageServices as i, ChildProcessCrashedError as it, SpawnReporterWorkerParams as j, ReporterStage as k, InstrumentDone as l, AnyWorkerPluginSource as m, RunEnvironmentShape as n, ConfigFileUnreadableError as nt, WiredRunLayer as o, WorkerBootError as ot, AnyWorkerPluginDescriptor as p, ModeSignal as q, EnginePorts as r, ConfigFileUnsupportedError as rt, MutationTestDone as s, WorkerBootTimeoutError as st, RunEnvironment as t, ConfigFileNotFoundError as tt, PrepareDone as u, PluginDescriptor as v, SandboxHandle as w, PluginSource as x, PluginDescriptorOf as y, Project as z };
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-CMCCQdTd.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-lr7GMjpY.mjs";
1
+ import { n as mod_d_exports$2 } from "./index-CKd1sAni.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-VVxHqsAv.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 { type ConfigEnv, type Immutable, type ImmutablePrimitive, type Primitive, StrykerConfig, type StrykerConfigExport, type StrykerConfigFn };
19
+ export type { ConfigEnv, Immutable, ImmutablePrimitive, Primitive, StrykerConfig, StrykerConfigExport, StrykerConfigFn };
package/dist/config.mjs CHANGED
@@ -1,2 +1,7 @@
1
- import { t as StrykerConfig } from "./stryker-config.schema-CCnDtVuW.mjs";
2
- export { StrykerConfig };
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-CUpTIyrj.mjs";
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-BnUKGQjA.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-B_qdjbe9.mjs";
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-BaK_pxuK.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 };