@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/CHANGELOG.md +30 -0
- package/README.md +31 -9
- package/dist/{Run.schema-BxsyHwHr.mjs → Run.schema-BaK_pxuK.mjs} +16 -3
- package/dist/{Run.schema-D43Nx5kI.d.mts → Run.schema-BnUKGQjA.d.mts} +4 -2
- package/dist/{RunEnvironment.service-pCzdC0Sy.d.mts → RunEnvironment.service-BaTBH0mI.d.mts} +3 -3
- package/dist/config.d.mts +2 -2
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{index-f-U3oZaJ.d.mts → index-CKd1sAni.d.mts} +926 -913
- package/dist/index.d.mts +19 -12
- package/dist/index.mjs +6 -3
- package/dist/main.mjs +11311 -40154
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{run-stages.cell-MyhsNxH2.mjs → run-stages.cell-RwTUyNX9.mjs} +177 -268
- package/dist/{stryker-config.schema-GS_4_5gX.d.mts → stryker-config.schema-VVxHqsAv.d.mts} +1 -1
- package/package.json +9 -8
- package/dist/dist-DKhCurgc.mjs +0 -1524
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-
|
|
2
|
-
import { i as Primitive, n as Immutable, r as ImmutablePrimitive } from "./stryker-config.schema-
|
|
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 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-
|
|
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/
|
|
949
|
-
declare const
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
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,
|
|
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-
|
|
3
|
-
import { $ as
|
|
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
|
-
|
|
67
|
+
testRunnerConfigOf: () => testRunnerConfigOf,
|
|
68
|
+
vmRunnerPluginUrl: () => vmRunnerPluginUrl,
|
|
69
|
+
vmTestRunnerConfig: () => vmTestRunnerConfig
|
|
67
70
|
});
|
|
68
71
|
//#endregion
|
|
69
72
|
//#region src/RunEvent/mod.ts
|