@systemfsoftware/stryker-js 7.0.0 → 9.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 +16 -0
- package/dist/config.d.mts +12 -2
- package/dist/index.d.mts +74 -18
- package/dist/index.mjs +2 -2
- package/dist/main.mjs +1615 -626
- package/dist/{mutation-test.cell-689vUxaq.d.mts → mutation-test.cell-BTa-up9u.d.mts} +2 -55
- package/dist/{output-mode-C5DpB11I.d.mts → output-mode-CE6VNHfH.d.mts} +38 -6
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{src-BY5pFAY5.mjs → src-BQuaL-fB.mjs} +649 -460
- package/package.json +7 -5
- package/dist/stryker-config-CTcO2hiS.d.mts +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as TestResult, Et as RunMutantResult, L as PartialStrykerOptions, P as MutationTestResult, St as MutateDescription, U as ReporterFactory, Y as StrykerOptions, b as ExitClass, ct as WorkerPluginKind, dt as FileDescription, f as CompleteDryRunResult, ft as FileDescriptions, ht as Mutant, q as ReporterRpcs, r as ResolvedMode, ut as CoverageData } from "./output-mode-CE6VNHfH.mjs";
|
|
2
2
|
import * as Effect$1 from "effect/Effect";
|
|
3
3
|
import * as FileSystem from "effect/FileSystem";
|
|
4
4
|
import * as Path from "effect/Path";
|
|
@@ -1777,59 +1777,6 @@ interface SpawnReporterWorkerParams {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
1779
1779
|
//#endregion
|
|
1780
|
-
//#region src/IncrementalReport.schema.d.ts
|
|
1781
|
-
declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
|
|
1782
|
-
readonly schemaVersion: S.String;
|
|
1783
|
-
readonly thresholds: S.Struct<{
|
|
1784
|
-
readonly high: S.Finite;
|
|
1785
|
-
readonly low: S.Finite;
|
|
1786
|
-
}>;
|
|
1787
|
-
readonly files: S.$Record<S.String, S.Struct<{
|
|
1788
|
-
readonly language: S.String;
|
|
1789
|
-
readonly source: S.String;
|
|
1790
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
1791
|
-
readonly id: S.String;
|
|
1792
|
-
readonly mutatorName: S.String;
|
|
1793
|
-
readonly replacement: S.String;
|
|
1794
|
-
readonly location: S.Struct<{
|
|
1795
|
-
readonly start: S.Struct<{
|
|
1796
|
-
readonly line: S.Finite;
|
|
1797
|
-
readonly column: S.Finite;
|
|
1798
|
-
}>;
|
|
1799
|
-
readonly end: S.Struct<{
|
|
1800
|
-
readonly line: S.Finite;
|
|
1801
|
-
readonly column: S.Finite;
|
|
1802
|
-
}>;
|
|
1803
|
-
}>;
|
|
1804
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "Timeout", "CompileError", "RuntimeError", "Ignored", "Pending"]>;
|
|
1805
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
1806
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
1807
|
-
readonly static: S.optional<S.Boolean>;
|
|
1808
|
-
readonly statusReason: S.optional<S.String>;
|
|
1809
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
1810
|
-
readonly description: S.optional<S.String>;
|
|
1811
|
-
readonly duration: S.optional<S.Finite>;
|
|
1812
|
-
}>>;
|
|
1813
|
-
}>>;
|
|
1814
|
-
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
1815
|
-
readonly source: S.optional<S.String>;
|
|
1816
|
-
readonly tests: S.$Array<S.Struct<{
|
|
1817
|
-
readonly id: S.String;
|
|
1818
|
-
readonly name: S.String;
|
|
1819
|
-
readonly location: S.optional<S.Struct<{
|
|
1820
|
-
readonly start: S.Struct<{
|
|
1821
|
-
readonly line: S.Finite;
|
|
1822
|
-
readonly column: S.Finite;
|
|
1823
|
-
}>;
|
|
1824
|
-
readonly end: S.optional<S.Struct<{
|
|
1825
|
-
readonly line: S.Finite;
|
|
1826
|
-
readonly column: S.Finite;
|
|
1827
|
-
}>>;
|
|
1828
|
-
}>>;
|
|
1829
|
-
}>>;
|
|
1830
|
-
}>>>;
|
|
1831
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
1832
|
-
//#endregion
|
|
1833
1780
|
//#region src/Project.d.ts
|
|
1834
1781
|
interface ProjectFile extends FileDescription {
|
|
1835
1782
|
readonly name: string;
|
|
@@ -1914,4 +1861,4 @@ interface MutationTestDone {
|
|
|
1914
1861
|
readonly verdict: ExitClass | null;
|
|
1915
1862
|
}
|
|
1916
1863
|
//#endregion
|
|
1917
|
-
export {
|
|
1864
|
+
export { PluginKind as $, ExtendsStepDocument as A, makeWorkerClient as At, MergeResult as B, ConfigError as C, WorkerBootError as Ct, ConfigFileUnsupportedError as D, WorkerLauncherShape as Dt, ConfigFileUnreadableError as E, WorkerLauncher as Et, ExtendsStepResolve as F, AnyPluginDescriptor as G, extendsPropertySchema as H, ExtendsStepState as I, EvaluatorPluginDescriptor as J, AnyWorkerPluginDescriptor as K, ExtendsStepStateSchema as L, ExtendsStepDone as M, OutOfMemoryError as Mt, ExtendsStepRead as N, WorkerBootTimeoutError as Nt, ExtendsRefusalReason as O, WorkerSpawnParams as Ot, ExtendsStepRefused as P, StageError as Pt, PluginDescriptorOf as Q, ImportedModuleSchema as R, ConfigDocumentSchema as S, SpawnedSocketWorker as St, ConfigFileNotFoundError as T, WorkerExit as Tt, forkOptionsSchema as U, ReadConfigCommand as V, survivorsPriorReport as W, LoadedPlugins as X, EvaluatorPluginSource as Y, PluginDescriptor as Z, ReporterStage as _, RunMutantTested as _t, WiredRunLayer as a, IdGeneratorShape as at, reporterWorkerFactory as b, RunTerminalEvent as bt, PrepareDone as c, RunEvents as ct, RunEnvironmentShape as d, Heartbeat as dt, PluginSource as et, SandboxHandle as f, HelpRendered as ft, REPORTER_EVENT_BATCH_BOUND as g, RunFailed as gt, ProjectFile as h, RunEvent as ht, StageServices as i, IdGenerator as it, ExtendsStepDocumentSchema as j, ChildProcessCrashedError as jt, ExtendsStepDecision as k, connectRetry as kt, PrepareExecutorArgs as l, RunIdentity as lt, Project as m, PlanKnown as mt, EnginePorts as n, WorkerPluginSource as nt, DryRunDone as o, classifyWorkerExit as ot, StrykerError as p, PhaseEntered as pt, AnyWorkerPluginSource as q, RunStageServices as r, Ignorer as rt, InstrumentDone as s, TestCoverage as st, MutationTestDone as t, WorkerPluginDescriptor as tt, RunEnvironment as u, RunIdentityShape as ut, ReporterWorkerClient as v, RunPhase as vt, ConfigFileInvalidError as w, WorkerClientParams as wt, spawnReporterWorker as x, VerdictReached as xt, SpawnReporterWorkerParams as y, RunStarted as yt, MergeCommand as z };
|
|
@@ -192,7 +192,7 @@ declare interface RunPlan {
|
|
|
192
192
|
}
|
|
193
193
|
declare type TestPlan = EarlyResultPlan | RunPlan;
|
|
194
194
|
declare namespace index_d_exports {
|
|
195
|
-
export { BaseTestResult, BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, BrandingInformation, BrandingInformationSchema, CheckResult, CheckResultSchema, CheckStatus, Checker, CheckerCheckResult, CheckerCustomConfig, CheckerCustomConfigSchema, CheckerEntryConfig, CheckerEntryConfigSchema, CheckerFailed, CheckerGroupResult, CheckerRequest, CheckerRpcs, CheckerService, CommandRunnerOptions, CommandRunnerOptionsSchema, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisMode, CoverageAnalysisMode as CoverageAnalysisModeType, CoverageAnalysisSchema, DeepOptional, Dependencies, DependenciesSchema, DryRunCompleted, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, EXIT_CODE, ErrorDryRunResult, ErrorMutantRunResult, Evaluator, EvaluatorFailed, EvaluatorService, ExitClass, FailedCheckResult, FailedTestResult, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, KilledMutantRunResult, KnownKeys, Location, LocationSchema, LogLevel, LogLevel as LogLevelType, Metrics, MetricsResult, MetricsResultSchema, MetricsSchema, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantResult, MutantResultSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, MutantStatus, MutantStatusSchema, MutantTested, MutationScoreThresholds, MutationScoreThresholdsSchema, MutationTestReportReady, MutationTestResult, MutationTestResultSchema, MutationTestingPlanReady, OnlyObject, OpenEndLocation, OpenEndLocationSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PassedCheckResult, PluginFileUrl, Position, PositionSchema, Primitive, PropagatedTrace, PropertyPathOverloads, RENDERED_OPTION_DEFAULTS, ReportType, ReportType as ReportTypeType, ReporterAck, ReporterDrained, ReporterEvent, ReporterEventBatch, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterInitOptions, ReporterPlanDescriptor, ReporterPlanDescriptorSchema, ReporterPlanKind, ReporterRpcs, RunOptions, RunTiming, RunTimingSchema, SkippedTestResult, StrykerOptions, StrykerOptionsSchema, SuccessTestResult, SurvivedMutantRunResult, TRACEPARENT_HEADER, TRACESTATE_HEADER, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerConfig, TestRunnerConfigSchema, TestRunnerCustomConfig, TestRunnerCustomConfigSchema, TestRunnerDryRunRequest, TestRunnerFailed, TestRunnerMutantRunRequest, TestRunnerRpcs, TestRunnerService, TestStatus, Thresholds, ThresholdsSchema, TimeoutDryRunResult, TimeoutMutantRunResult, TraceContextMiddleware, TraceContextParts, TraceContextReference, TracedRpc, Traceparent, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema, formatTraceparent, isCustomTestRunner, parseTraceparent, propertyPath, strykerCoreSchema, strykerReportBugUrl, testFilesProvided, toMutantRunResult };
|
|
195
|
+
export { BaseTestResult, BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, BrandingInformation, BrandingInformationSchema, CheckResult, CheckResultSchema, CheckStatus, Checker, CheckerCheckResult, CheckerCustomConfig, CheckerCustomConfigSchema, CheckerEntryConfig, CheckerEntryConfigSchema, CheckerFailed, CheckerGroupResult, CheckerMutantWire, CheckerRequest, CheckerRpcs, CheckerService, CommandRunnerOptions, CommandRunnerOptionsSchema, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisMode, CoverageAnalysisMode as CoverageAnalysisModeType, CoverageAnalysisSchema, DeepOptional, Dependencies, DependenciesSchema, DryRunCompleted, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, EXIT_CODE, ErrorDryRunResult, ErrorMutantRunResult, Evaluator, EvaluatorFailed, EvaluatorService, ExitClass, FailedCheckResult, FailedTestResult, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, KilledMutantRunResult, KnownKeys, Location, LocationSchema, LogLevel, LogLevel as LogLevelType, Metrics, MetricsResult, MetricsResultSchema, MetricsSchema, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantResult, MutantResultSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, MutantStatus, MutantStatusSchema, MutantTested, MutationScoreThresholds, MutationScoreThresholdsSchema, MutationTestReportReady, MutationTestResult, MutationTestResultSchema, MutationTestingPlanReady, OnlyObject, OpenEndLocation, OpenEndLocationSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PassedCheckResult, PluginFileUrl, Position, PositionSchema, Primitive, PropagatedTrace, PropertyPathOverloads, RENDERED_OPTION_DEFAULTS, ReportType, ReportType as ReportTypeType, ReporterAck, ReporterDrained, ReporterEvent, ReporterEventBatch, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterInitOptions, ReporterPlanDescriptor, ReporterPlanDescriptorSchema, ReporterPlanKind, ReporterRpcs, RunOptions, RunTiming, RunTimingSchema, SkippedTestResult, StrykerOptions, StrykerOptionsSchema, SuccessTestResult, SurvivedMutantRunResult, TRACEPARENT_HEADER, TRACESTATE_HEADER, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerConfig, TestRunnerConfigSchema, TestRunnerCustomConfig, TestRunnerCustomConfigSchema, TestRunnerDryRunRequest, TestRunnerFailed, TestRunnerMutantRunRequest, TestRunnerRpcs, TestRunnerService, TestStatus, Thresholds, ThresholdsSchema, TimeoutDryRunResult, TimeoutMutantRunResult, TraceContextMiddleware, TraceContextParts, TraceContextReference, TracedRpc, Traceparent, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema, formatTraceparent, isCustomTestRunner, parseTraceparent, propertyPath, strykerCoreSchema, strykerReportBugUrl, testFilesProvided, toMutantRunResult };
|
|
196
196
|
}
|
|
197
197
|
declare interface BaseTestResult {
|
|
198
198
|
readonly id: string;
|
|
@@ -247,16 +247,48 @@ declare const CheckerFailed_base: S.Class<CheckerFailed, S.TaggedStruct<"Checker
|
|
|
247
247
|
readonly mutantIds: S.$Array<S.String>;
|
|
248
248
|
}>, YieldableError>;
|
|
249
249
|
declare const CheckerGroupResult: S.$Array<S.$Array<S.String>>;
|
|
250
|
+
declare const CheckerMutantWire: S.Struct<{
|
|
251
|
+
readonly id: S.NonEmptyString;
|
|
252
|
+
readonly fileName: S.NonEmptyString;
|
|
253
|
+
readonly mutatorName: S.NonEmptyString;
|
|
254
|
+
readonly replacement: S.String;
|
|
255
|
+
readonly location: S.Struct<{
|
|
256
|
+
readonly start: S.Struct<{
|
|
257
|
+
readonly line: S.Finite;
|
|
258
|
+
readonly column: S.Finite;
|
|
259
|
+
}>;
|
|
260
|
+
readonly end: S.Struct<{
|
|
261
|
+
readonly line: S.Finite;
|
|
262
|
+
readonly column: S.Finite;
|
|
263
|
+
}>;
|
|
264
|
+
}>;
|
|
265
|
+
}>;
|
|
266
|
+
declare type CheckerMutantWire = typeof CheckerMutantWire.Type;
|
|
250
267
|
declare const CheckerRequest: S.Struct<{
|
|
251
268
|
readonly checkerName: S.String;
|
|
252
|
-
readonly mutants: S.$Array<
|
|
269
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
270
|
+
readonly id: S.NonEmptyString;
|
|
271
|
+
readonly fileName: S.NonEmptyString;
|
|
272
|
+
readonly mutatorName: S.NonEmptyString;
|
|
273
|
+
readonly replacement: S.String;
|
|
274
|
+
readonly location: S.Struct<{
|
|
275
|
+
readonly start: S.Struct<{
|
|
276
|
+
readonly line: S.Finite;
|
|
277
|
+
readonly column: S.Finite;
|
|
278
|
+
}>;
|
|
279
|
+
readonly end: S.Struct<{
|
|
280
|
+
readonly line: S.Finite;
|
|
281
|
+
readonly column: S.Finite;
|
|
282
|
+
}>;
|
|
283
|
+
}>;
|
|
284
|
+
}>>;
|
|
253
285
|
}>;
|
|
254
286
|
declare type CheckerRequest = typeof CheckerRequest.Type;
|
|
255
287
|
declare const CheckerRpcs: RpcGroup.RpcGroup<TracedRpc<'check', typeof CheckerRequest, typeof CheckerCheckResult, typeof CheckerFailed> | TracedRpc<'group', typeof CheckerRequest, typeof CheckerGroupResult, typeof CheckerFailed>>;
|
|
256
288
|
declare interface CheckerService {
|
|
257
289
|
readonly init: Effect$1.Effect<void, CheckerFailed>;
|
|
258
|
-
readonly check: (mutants: readonly
|
|
259
|
-
readonly group: (mutants: readonly
|
|
290
|
+
readonly check: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
|
|
291
|
+
readonly group: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<readonly (readonly string[])[], CheckerFailed>;
|
|
260
292
|
}
|
|
261
293
|
declare type CheckResult = FailedCheckResult | PassedCheckResult;
|
|
262
294
|
declare const CheckResultSchema: S.Union<readonly [S.Struct<{
|
|
@@ -1105,7 +1137,7 @@ declare const TestRunnerMutantRunRequest: S.Struct<{
|
|
|
1105
1137
|
readonly options: S.Struct<{
|
|
1106
1138
|
readonly timeout: S.Finite;
|
|
1107
1139
|
readonly disableBail: S.Boolean;
|
|
1108
|
-
readonly activeMutant:
|
|
1140
|
+
readonly activeMutant: Mutant;
|
|
1109
1141
|
readonly sandboxFileName: S.String;
|
|
1110
1142
|
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
1111
1143
|
readonly reloadEnvironment: S.Boolean;
|
|
@@ -1179,4 +1211,4 @@ interface ResolvedMode {
|
|
|
1179
1211
|
readonly stdoutIsTTY: boolean;
|
|
1180
1212
|
}
|
|
1181
1213
|
//#endregion
|
|
1182
|
-
export {
|
|
1214
|
+
export { TestResult as $, MutantResultSchema as A, ReporterDrained as B, FileResult as C, MutationRange as Ct, MetricsResult as D, RunOptions as Dt, Metrics as E, RunMutantResult as Et, MutationTestResultSchema as F, ReporterInit as G, ReporterEventBatch as H, MutationTestingPlanReady as I, SkippedTestResult as J, ReporterInitOptions as K, PartialStrykerOptions as L, MutantTested as M, MutationTestReportReady as N, MetricsSchema as O, RunPlan as Ot, MutationTestResult as P, SurvivedMutantRunResult as Q, PassedCheckResult as R, FailedTestResult as S, MutateDescription as St, KilledMutantRunResult as T, PositionSchema as Tt, ReporterFactory as U, ReporterEvent as V, ReporterFailed as W, StrykerOptionsSchema as X, StrykerOptions as Y, SuccessTestResult as Z, DryRunResult as _, MutantActivationSchema as _t, CheckResult as a, TimeoutMutantRunResult as at, ExitClass as b, MutantStatus as bt, CheckerGroupResult as c, WorkerPluginKind as ct, CheckerRpcs as d, FileDescription as dt, TestRunnerCapabilities as et, CompleteDryRunResult as f, FileDescriptions as ft, DryRunOptions as g, MutantActivation as gt, DryRunCompleted as h, Mutant as ht, BaseTestResult as i, TimeoutDryRunResult as it, MutantRunResult as j, MutantResult as k, index_d_exports$1 as kt, CheckerMutantWire as l, index_d_exports as lt, DeepOptional as m, LocationSchema as mt, OutputMode as n, TestRunnerConfigSchema as nt, CheckerCheckResult as o, TraceContextMiddleware as ot, CoverageAnalysis as p, Location as pt, ReporterRpcs as q, ResolvedMode as r, TestRunnerFailed as rt, CheckerFailed as s, TracedRpc as st, ModeSignal as t, TestRunnerConfig as tt, CheckerRequest as u, CoverageData as ut, ErrorDryRunResult as v, MutantCoverage as vt, FileResultSchema as w, Position as wt, FailedCheckResult as x, MutantStatusSchema as xt, ErrorMutantRunResult as y, MutantRunOptions as yt, ReporterAck as z };
|
package/dist/promises.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as MutationTestDone } from "./mutation-test.cell-
|
|
1
|
+
import { L as PartialStrykerOptions } from "./output-mode-CE6VNHfH.mjs";
|
|
2
|
+
import { t as MutationTestDone } from "./mutation-test.cell-BTa-up9u.mjs";
|
|
3
3
|
//#region src/promises/index.d.ts
|
|
4
4
|
export declare const run: (options: PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Promise<MutationTestDone>;
|
|
5
5
|
//#endregion
|
package/dist/promises.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as strykerCell } from "./src-
|
|
1
|
+
import { t as strykerCell } from "./src-BQuaL-fB.mjs";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
|
|
4
4
|
import * as NodePath from "@effect/platform-node-shared/NodePath";
|