@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.
@@ -1,4 +1,4 @@
1
- import { L as ReporterFactory, O as MutationTestResult, U as StrykerOptions, V as ReporterRpcs, at as FileDescription, bt as RunMutantResult, gt as MutateDescription, it as CoverageData, j as PartialStrykerOptions, lt as Mutant, m as ExitClass, nt as WorkerPluginKind, o as CompleteDryRunResult, ot as FileDescriptions, q as TestResult, r as ResolvedMode } from "./output-mode-C5DpB11I.mjs";
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<typeof Mutant>;
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 Mutant[]) => Effect$1.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
259
- readonly group: (mutants: readonly Mutant[]) => Effect$1.Effect<readonly (readonly string[])[], CheckerFailed>;
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: typeof Mutant;
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 { TimeoutMutantRunResult as $, MutationTestingPlanReady as A, ReporterInitOptions as B, MutantResult as C, index_d_exports$1 as Ct, MutationTestReportReady as D, MutantTested as E, ReporterEvent as F, SuccessTestResult as G, SkippedTestResult as H, ReporterEventBatch as I, TestRunnerCapabilities as J, SurvivedMutantRunResult as K, ReporterFactory as L, PassedCheckResult as M, ReporterAck as N, MutationTestResult as O, ReporterDrained as P, TimeoutDryRunResult as Q, ReporterFailed as R, MetricsSchema as S, RunPlan as St, MutantRunResult as T, StrykerOptions as U, ReporterRpcs as V, StrykerOptionsSchema as W, TestRunnerConfigSchema as X, TestRunnerConfig as Y, TestRunnerFailed as Z, FileResult as _, MutationRange as _t, CheckResult as a, FileDescription as at, Metrics as b, RunMutantResult as bt, DeepOptional as c, LocationSchema as ct, DryRunResult as d, MutantActivationSchema as dt, TraceContextMiddleware as et, ErrorDryRunResult as f, MutantCoverage as ft, FailedTestResult as g, MutateDescription as gt, FailedCheckResult as h, MutantStatusSchema as ht, BaseTestResult as i, CoverageData as it, PartialStrykerOptions as j, MutationTestResultSchema as k, DryRunCompleted as l, Mutant as lt, ExitClass as m, MutantStatus as mt, OutputMode as n, WorkerPluginKind as nt, CompleteDryRunResult as o, FileDescriptions as ot, ErrorMutantRunResult as p, MutantRunOptions as pt, TestResult as q, ResolvedMode as r, index_d_exports as rt, CoverageAnalysis as s, Location as st, ModeSignal as t, TracedRpc as tt, DryRunOptions as u, MutantActivation as ut, FileResultSchema as v, Position as vt, MutantResultSchema as w, MetricsResult as x, RunOptions as xt, KilledMutantRunResult as y, PositionSchema as yt, ReporterInit as z };
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 };
@@ -1,5 +1,5 @@
1
- import { j as PartialStrykerOptions } from "./output-mode-C5DpB11I.mjs";
2
- import { t as MutationTestDone } from "./mutation-test.cell-689vUxaq.mjs";
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-BY5pFAY5.mjs";
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";