@systemfsoftware/stryker-js 7.0.0 → 8.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 +10 -0
- package/dist/config.d.mts +12 -2
- package/dist/index.d.mts +73 -18
- package/dist/index.mjs +2 -2
- package/dist/main.mjs +1487 -544
- package/dist/{mutation-test.cell-689vUxaq.d.mts → mutation-test.cell-Ch-QUquW.d.mts} +1 -1
- 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-WMC3thmX.mjs} +458 -283
- package/package.json +9 -7
- 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";
|
|
@@ -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-Ch-QUquW.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-WMC3thmX.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";
|