@systemfsoftware/stryker-js 12.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.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
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";
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-CKd1sAni.mjs";
2
+ import { i as Primitive, n as Immutable, r as ImmutablePrimitive } from "./stryker-config.schema-VVxHqsAv.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-BnUKGQjA.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-BaTBH0mI.mjs";
5
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";
@@ -932,6 +932,13 @@ type PooledTestRunner = Handle.Of<typeof PooledTestRunner>;
932
932
  declare const isCommandRunner: (name: mod_d_exports$2$1.TestRunnerConfig) => name is 'command';
933
933
  //#endregion
934
934
  //#region src/TestRunner.blueprint.d.ts
935
+ interface ChildProcessTestRunnerParams {
936
+ readonly options: mod_d_exports$2$1.StrykerOptions;
937
+ readonly fileDescriptions: mod_d_exports$2$2.FileDescriptions;
938
+ readonly sandboxWorkingDirectory: string;
939
+ readonly workerEntrypoint: string;
940
+ readonly idGenerator: IdGeneratorShape;
941
+ }
935
942
  interface TestRunnerBuildContext {
936
943
  readonly options: mod_d_exports$2$1.StrykerOptions;
937
944
  readonly fileDescriptions: mod_d_exports$2$2.FileDescriptions;
@@ -940,20 +947,20 @@ interface TestRunnerBuildContext {
940
947
  readonly retire: Effect.Effect<void>;
941
948
  readonly testFiles: readonly string[];
942
949
  }
950
+ declare const makeChildProcessTestRunner: (params: ChildProcessTestRunnerParams) => Effect.Effect<PooledTestRunner, PooledTestRunnerError, Scope.Scope | WorkerLauncher>;
943
951
  declare const buildTestRunner: {
944
952
  <ChildRunnerError>(context: TestRunnerBuildContext, childProcessRunner: Effect.Effect<PooledTestRunner, ChildRunnerError, Scope.Scope | WorkerLauncher>): Effect.Effect<PooledTestRunner, PooledTestRunnerError | ChildRunnerError, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Scope.Scope | WorkerLauncher>;
945
953
  <ChildRunnerError>(childProcessRunner: Effect.Effect<PooledTestRunner, ChildRunnerError, Scope.Scope | WorkerLauncher>): (context: TestRunnerBuildContext) => Effect.Effect<PooledTestRunner, PooledTestRunnerError | ChildRunnerError, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Scope.Scope | WorkerLauncher>;
946
954
  };
947
955
  //#endregion
948
- //#region src/VmRunner.blueprint.d.ts
949
- declare const isVmRunner: (name: mod_d_exports$2$1.TestRunnerConfig) => name is 'vm';
950
- interface VmTestRunnerConfig {
951
- readonly testFiles: readonly string[];
952
- readonly sandboxWorkingDirectory: string;
953
- }
954
- declare const vmTestRunner: (config: VmTestRunnerConfig) => Effect.Effect<PooledTestRunner, mod_d_exports$6$1.TestRunnerFailed, Scope.Scope>;
956
+ //#region src/vm-runner.d.ts
957
+ declare const vmRunnerName = "vm";
958
+ declare const vmRunnerPluginUrl: () => string;
959
+ declare const isVmRunner: (name: mod_d_exports$2$1.TestRunnerConfig) => name is typeof vmRunnerName;
960
+ declare const vmTestRunnerConfig: () => mod_d_exports$2$1.TestRunnerCustomConfig;
961
+ declare const testRunnerConfigOf: (configured: mod_d_exports$2$1.TestRunnerConfig) => mod_d_exports$2$1.TestRunnerConfig;
955
962
  declare namespace mod_d_exports$3 {
956
- export { AnyPluginDescriptor, AnyWorkerPluginDescriptor, AnyWorkerPluginSource, EvaluatorPluginDescriptor, EvaluatorPluginSource, Framework, Ignorer, LoadedPlugins, Node_2 as Node, PluginDescriptor, PluginDescriptorOf, PluginKind, PluginSource, PooledTestRunner, PooledTestRunnerError, REPORTER_EVENT_BATCH_BOUND, ReporterStage, ReporterWorkerClient, SpawnReporterWorkerParams, TestRunnerBuildContext, VmTestRunnerConfig, WorkerPluginDescriptor, WorkerPluginSource, buildTestRunner, isCommandRunner, isVmRunner, reporterWorkerFactory, spawnReporterWorker, vmTestRunner };
963
+ export { AnyPluginDescriptor, AnyWorkerPluginDescriptor, AnyWorkerPluginSource, EvaluatorPluginDescriptor, EvaluatorPluginSource, Framework, Ignorer, LoadedPlugins, Node_2 as Node, PluginDescriptor, PluginDescriptorOf, PluginKind, PluginSource, PooledTestRunner, PooledTestRunnerError, REPORTER_EVENT_BATCH_BOUND, ReporterStage, ReporterWorkerClient, SpawnReporterWorkerParams, TestRunnerBuildContext, WorkerPluginDescriptor, WorkerPluginSource, buildTestRunner, isCommandRunner, isVmRunner, makeChildProcessTestRunner, reporterWorkerFactory, spawnReporterWorker, testRunnerConfigOf, vmRunnerPluginUrl, vmTestRunnerConfig };
957
964
  }
958
965
  //#endregion
959
966
  //#region src/reporting/metrics-from-report.schema.d.ts
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.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";
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-BaK_pxuK.mjs";
3
+ import { $ as ExtendsStepDone, A as RunEvents, B as make, C as forkCoreSchema, D as validateOptions, E as mergeConfigs, F as MetricsResultFromReport, G as ConfigFileInvalidError, H as isCommandRunner, I as reporterWorkerFactory, J as ConfigFileUnsupportedError, K as ConfigFileNotFoundError, L as spawnReporterWorker, M as VerdictEnvelope, N as VerdictMutant, O as RunEnvironment, P as VerdictThresholds, Q as ExtendsStepDocumentSchema, R as makeWorkerClient, S as describeErrors, T as initialExtendsStepState, U as FileMatcher, V as StrykerError, W as ConfigError, X as defaultOptions, Y as createDefaultOptions, Z as ConfigDocumentSchema, _ as ClassifyWorkerExitDecision, a as isVmRunner, at as MergeCommand, b as readConfig, c as vmTestRunnerConfig, ct as extendsPropertySchema, d as makeRunEventStream, dt as checkGroupedPlans, et as ExtendsStepRead, f as RunEventWireLine, ft as ChildProcessCrashedError, g as ClassifyWorkerExitCommand, gt as CheckerSkippedRequested, h as layerWorkerProtocol, ht as CheckerAnsweredUnrequested, i as makeChildProcessTestRunner, it as ImportedModuleSchema, j as RunIdentity, k as IdGenerator, l as RunEventDrain, lt as forkOptionsSchema, m as nodePlatformLayer, mt as WorkerBootTimeoutError, n as strykerCell, nt as ExtendsStepResolve, o as testRunnerConfigOf, ot as MergeResult, p as IncrementalReportSchema, pt as OutOfMemoryError, q as ConfigFileUnreadableError, r as buildTestRunner, rt as ExtendsStepStateSchema, s as vmRunnerPluginUrl, st as ReadConfigCommand, t as mutationTestCell, tt as ExtendsStepRefused, u as RunEventDrainLive, ut as survivorsPriorReport, v as classifyWorkerExit, w as importModule, x as decideExtendsStep, y as loadConfigCell, z as WorkerLauncher } from "./run-stages.cell-RwTUyNX9.mjs";
4
4
  //#region src/Checker/mod.ts
5
5
  var Checker_exports = /* @__PURE__ */ __exportAll({
6
6
  CheckerAnsweredUnrequested: () => CheckerAnsweredUnrequested,
@@ -61,9 +61,12 @@ var Plugin_exports = /* @__PURE__ */ __exportAll({
61
61
  buildTestRunner: () => buildTestRunner,
62
62
  isCommandRunner: () => isCommandRunner,
63
63
  isVmRunner: () => isVmRunner,
64
+ makeChildProcessTestRunner: () => makeChildProcessTestRunner,
64
65
  reporterWorkerFactory: () => reporterWorkerFactory,
65
66
  spawnReporterWorker: () => spawnReporterWorker,
66
- vmTestRunner: () => vmTestRunner
67
+ testRunnerConfigOf: () => testRunnerConfigOf,
68
+ vmRunnerPluginUrl: () => vmRunnerPluginUrl,
69
+ vmTestRunnerConfig: () => vmTestRunnerConfig
67
70
  });
68
71
  //#endregion
69
72
  //#region src/RunEvent/mod.ts