@systemfsoftware/stryker-js 10.0.1 → 10.1.1
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 +12 -0
- package/dist/{Run.schema-CgVfoOfk.mjs → Run.schema-B_KpPeBA.mjs} +105 -76
- package/dist/{Run.schema-t292QQGe.d.mts → Run.schema-BsSOfQnD.d.mts} +1 -1
- package/dist/{compiler-Bq9Nelu8.mjs → compiler-Dc7TYMb_.mjs} +1709 -991
- package/dist/{compiler-C8aLIb5U.mjs → compiler-Faeg70AC.mjs} +1709 -991
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{dist-B3nT7z4G.mjs → dist-Dmv1WEP8.mjs} +625 -443
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{index-D_mcApox.d.mts → index-CogNSD0V.d.mts} +13 -6
- package/dist/index.d.mts +15 -14
- package/dist/index.mjs +2 -2
- package/dist/main.mjs +10318 -26480
- package/dist/merge-config-CHZWyvVQ.mjs +19 -0
- package/dist/{mutation-test.cell-Dp6QiuRg.d.mts → mutation-test.cell-DS86DvC9.d.mts} +32 -32
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{src-CMHnl87m.mjs → src-BkTsNvl0.mjs} +273 -217
- package/dist/{wasm-klkEDrvQ.mjs → wasm-CUFfND2k.mjs} +1 -1
- package/package.json +19 -19
- package/dist/execAsync-CfPZgJSD.mjs +0 -10
- package/dist/getMachineId-bsd-YZILidse.mjs +0 -27
- package/dist/getMachineId-darwin-B_CgClId.mjs +0 -24
- package/dist/getMachineId-linux-DprzjpT3.mjs +0 -20
- package/dist/getMachineId-unsupported-Ce9f061A.mjs +0 -15
- package/dist/getMachineId-win-DETv1PQd.mjs +0 -26
- package/dist/merge-config-BrrNQWje.mjs +0 -16
package/dist/events.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as VerdictThresholds, _ as RunStarted, a as ModeSignal, b as VerdictMutant, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, x as VerdictReached, y as VerdictCounts } from "./Run.schema-
|
|
1
|
+
import { S as VerdictThresholds, _ as RunStarted, a as ModeSignal, b as VerdictMutant, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, x as VerdictReached, y as VerdictCounts } from "./Run.schema-BsSOfQnD.mjs";
|
|
2
2
|
export { Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, StageError, type VerdictCounts, type VerdictMutant, VerdictReached, type VerdictThresholds };
|
package/dist/events.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as RunStarted, a as ModeSignal, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, v as VerdictReached } from "./Run.schema-
|
|
1
|
+
import { _ as RunStarted, a as ModeSignal, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, v as VerdictReached } from "./Run.schema-B_KpPeBA.mjs";
|
|
2
2
|
export { Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, StageError, VerdictReached };
|
|
@@ -8,11 +8,12 @@ import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
|
8
8
|
import * as RpcMiddleware from "effect/unstable/rpc/RpcMiddleware";
|
|
9
9
|
import * as HashMap from "effect/HashMap";
|
|
10
10
|
import { YieldableError } from "effect/Cause";
|
|
11
|
+
import { JsonSchema } from "effect/JsonSchema";
|
|
11
12
|
import { StandardSchemaV1 } from "effect/StandardSchema";
|
|
12
13
|
declare namespace index_d_exports$1 {
|
|
13
14
|
export { Coverage, CoverageData, CoveragePerTestId, ERROR_CODES, EarlyResultPlan, ErrnoException, File_2 as File, FileDescription, FileDescriptions, INSTRUMENTER_CONSTANTS, InstrumentError, InstrumentResult, InstrumenterContext, InstrumenterOptions, InstrumenterOptionsSchema, Location, LocationSchema, Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantEarlyResultPlan, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutateDescription, MutationRange, OpenEndLocation, OpenEndLocationSchema, ParserOptions, Position, PositionSchema, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, TestPlan, causeText, disableTypeChecks, errorToString, instrument, isErrnoException, isMutant, normalizeFileName };
|
|
14
15
|
}
|
|
15
|
-
declare const causeText: (cause:
|
|
16
|
+
declare const causeText: <A = unknown>(cause: A, depth: number) => string | undefined;
|
|
16
17
|
declare interface Coverage {
|
|
17
18
|
readonly static: CoverageData;
|
|
18
19
|
readonly perTest: CoveragePerTestId;
|
|
@@ -33,7 +34,7 @@ declare interface ErrnoException extends Error {
|
|
|
33
34
|
declare const ERROR_CODES: Readonly<{
|
|
34
35
|
NoSuchFileOrDirectory: 'ENOENT';
|
|
35
36
|
}>;
|
|
36
|
-
declare function errorToString(error:
|
|
37
|
+
declare function errorToString<A = unknown>(error: A): string;
|
|
37
38
|
declare interface File_2 extends FileDescription {
|
|
38
39
|
name: string;
|
|
39
40
|
content: string;
|
|
@@ -192,7 +193,7 @@ declare interface RunPlan {
|
|
|
192
193
|
}
|
|
193
194
|
declare type TestPlan = EarlyResultPlan | RunPlan;
|
|
194
195
|
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, CheckerMutantWire, CheckerRequest, CheckerRpcs, CheckerService, CommandRunnerOptions, CommandRunnerOptionsSchema, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisMode, CoverageAnalysisMode as CoverageAnalysisModeType, CoverageAnalysisSchema, DeepOptional, Dependencies, DependenciesSchema, DetectedStatus, DryRunCompleted, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, EXIT_CODE, ErrorDryRunResult, ErrorMutantRunResult, Evaluator, EvaluatorFailed, EvaluatorService, ExitClass, FailedCheckResult, FailedTestResult, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, InvalidStatus, KilledMutantRunResult, KnownKeys, Location, LocationSchema, LogLevel, LogLevel as LogLevelType, Metrics, MetricsResult, MetricsResultEncoded, MetricsResultSchema, MetricsSchema, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantResult, MutantResultSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, MutantStatus, MutantStatusSchema, MutantTested, MutationScoreThresholds, MutationScoreThresholdsSchema, MutationTestReportReady, MutationTestResult, MutationTestResultSchema, MutationTestingPlanReady, NonNegativeFinite, NonNegativeInt, OnlyObject, OpenEndLocation, OpenEndLocationSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PassedCheckResult, Percentage, 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, UndetectedStatus, UntestedStatus, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema, formatTraceparent, isCustomTestRunner, parseTraceparent, propertyPath, strykerCoreSchema, strykerReportBugUrl, testFilesProvided, toMutantRunResult };
|
|
196
|
+
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, DetectedStatus, DryRunCompleted, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, EXIT_CODE, ErrorDryRunResult, ErrorMutantRunResult, Evaluator, EvaluatorFailed, EvaluatorService, ExitClass, FailedCheckResult, FailedTestResult, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, HIT_LIMIT_REASON_PREFIX, InvalidStatus, KilledMutantRunResult, KnownKeys, Location, LocationSchema, LogLevel, LogLevel as LogLevelType, Metrics, MetricsResult, MetricsResultEncoded, MetricsResultSchema, MetricsSchema, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantResult, MutantResultSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, MutantStatus, MutantStatusSchema, MutantTested, MutationScoreThresholds, MutationScoreThresholdsSchema, MutationTestReportReady, MutationTestResult, MutationTestResultSchema, MutationTestingPlanReady, NonNegativeFinite, NonNegativeInt, OnlyObject, OpenEndLocation, OpenEndLocationSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PassedCheckResult, Percentage, 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, UndetectedStatus, UntestedStatus, WALL_CLOCK_TIMEOUT_REASON, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema, formatTraceparent, hitLimitReachedReason, isCustomTestRunner, isHitLimitReason, isNamedTrap, parseTraceparent, propertyPath, strykerCoreSchema, strykerReportBugUrl, testFilesProvided, toMutantRunResult, wallClockTimeoutStopsRun };
|
|
196
197
|
}
|
|
197
198
|
declare interface BaseTestResult {
|
|
198
199
|
readonly id: string;
|
|
@@ -317,7 +318,7 @@ declare const CoverageAnalysisSchema: S.Literals<readonly ["off", "all", "perTes
|
|
|
317
318
|
* caller CONSTRUCTS by assignment, so `readonly` is stripped. The decoded
|
|
318
319
|
* `StrykerOptions` keeps it - that side is read, never built.
|
|
319
320
|
*/
|
|
320
|
-
declare type DeepOptional<T> = { -readonly [P in keyof T]?: T[P] extends Record<string,
|
|
321
|
+
declare type DeepOptional<T, V = unknown> = { -readonly [P in keyof T]?: T[P] extends Record<string, V> ? DeepOptional<T[P], V> | undefined : T[P]; };
|
|
321
322
|
declare type Dependencies = typeof DependenciesSchema.Type;
|
|
322
323
|
declare const DependenciesSchema: S.$Record<S.String, S.String>;
|
|
323
324
|
declare const DetectedStatus: S.Union<readonly [S.Literal<"Killed">, S.Literal<"Timeout">]>;
|
|
@@ -519,8 +520,12 @@ declare const FrameworkInformationSchema: S.Struct<{
|
|
|
519
520
|
}>>;
|
|
520
521
|
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
521
522
|
}>;
|
|
523
|
+
declare const HIT_LIMIT_REASON_PREFIX = "Hit limit reached";
|
|
524
|
+
declare const hitLimitReachedReason: (count: number, limit: number) => string;
|
|
522
525
|
declare const InvalidStatus: S.Union<readonly [S.Literal<"CompileError">, S.Literal<"RuntimeError">]>;
|
|
523
526
|
declare const isCustomTestRunner: (value: TestRunnerConfig) => value is TestRunnerCustomConfig;
|
|
527
|
+
declare const isHitLimitReason: (reason: string | undefined) => boolean;
|
|
528
|
+
declare const isNamedTrap: (activeMutantId: string, namedTrapId: string | undefined) => boolean;
|
|
524
529
|
declare interface KilledMutantRunResult {
|
|
525
530
|
readonly status: 'killed';
|
|
526
531
|
readonly killedBy: readonly string[];
|
|
@@ -854,7 +859,7 @@ declare const ReporterEventBatch: S.$Array<S.Union<readonly [typeof DryRunComple
|
|
|
854
859
|
declare type ReporterEventBatch = typeof ReporterEventBatch.Type;
|
|
855
860
|
declare const ReporterEventKind: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
856
861
|
declare type ReporterEventKind = typeof ReporterEventKind.Type;
|
|
857
|
-
declare const ReporterEventSchema: StandardSchemaV1<
|
|
862
|
+
declare const ReporterEventSchema: StandardSchemaV1<typeof ReporterEventUnion['Encoded'], ReporterEvent>;
|
|
858
863
|
declare const ReporterEventUnion: S.Union<readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>;
|
|
859
864
|
declare type ReporterFactory = (options: StrykerOptions, init: ReporterInit) => (events: AsyncIterable<ReporterEvent>) => Effect$1.Effect<void, ReporterFailed>;
|
|
860
865
|
declare class ReporterFailed extends ReporterFailed_base {}
|
|
@@ -901,7 +906,7 @@ declare interface SkippedTestResult extends BaseTestResult {
|
|
|
901
906
|
* one is a schema - the generated law suite does exactly that, and a document
|
|
902
907
|
* handed to `toEncoded` takes the whole suite down with it.
|
|
903
908
|
*/
|
|
904
|
-
declare const strykerCoreSchema:
|
|
909
|
+
declare const strykerCoreSchema: JsonSchema;
|
|
905
910
|
/** The decoded type: every defaulted option is present. */
|
|
906
911
|
declare type StrykerOptions = S.Schema.Type<typeof StrykerOptionsSchema>;
|
|
907
912
|
declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
@@ -1194,6 +1199,8 @@ declare const TRACEPARENT_HEADER = "traceparent";
|
|
|
1194
1199
|
declare const TRACESTATE_HEADER = "tracestate";
|
|
1195
1200
|
declare const UndetectedStatus: S.Union<readonly [S.Literal<"Survived">, S.Literal<"NoCoverage">]>;
|
|
1196
1201
|
declare const UntestedStatus: S.Union<readonly [S.Literal<"Ignored">, S.Literal<"Pending">]>;
|
|
1202
|
+
declare const WALL_CLOCK_TIMEOUT_REASON = "wall-clock-timeout";
|
|
1203
|
+
declare const wallClockTimeoutStopsRun: (status: string, reason: string | undefined) => boolean;
|
|
1197
1204
|
declare const WorkerEntryUrl: S.String;
|
|
1198
1205
|
declare type WorkerEntryUrl = typeof WorkerEntryUrl.Type;
|
|
1199
1206
|
declare const WorkerPluginKind: S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>;
|
package/dist/index.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ import * as EffectDuration from 'effect/Duration';
|
|
|
9
9
|
import * as Exit from 'effect/Exit';
|
|
10
10
|
import * as FileSystem from 'effect/FileSystem';
|
|
11
11
|
import * as HashMap from 'effect/HashMap';
|
|
12
|
+
import { JsonSchema } from 'effect/JsonSchema';
|
|
12
13
|
import * as Layer from 'effect/Layer';
|
|
13
14
|
import * as Metric from 'effect/Metric';
|
|
14
15
|
import * as MutableHashMap from 'effect/MutableHashMap';
|
|
@@ -563,7 +564,7 @@ export declare function deepFreeze<T>(target: T): Immutable<T>;
|
|
|
563
564
|
* caller CONSTRUCTS by assignment, so `readonly` is stripped. The decoded
|
|
564
565
|
* `StrykerOptions` keeps it - that side is read, never built.
|
|
565
566
|
*/
|
|
566
|
-
export declare type DeepOptional<T> = { -readonly [P in keyof T]?: T[P] extends Record<string,
|
|
567
|
+
export declare type DeepOptional<T, V = unknown> = { -readonly [P in keyof T]?: T[P] extends Record<string, V> ? DeepOptional<T[P], V> | undefined : T[P]; };
|
|
567
568
|
|
|
568
569
|
export declare const defaultOptions: Effect.Effect<Immutable<StrykerOptions>, never, never>;
|
|
569
570
|
|
|
@@ -829,7 +830,7 @@ export declare const FileResultSchema: S.Struct<{
|
|
|
829
830
|
}>>;
|
|
830
831
|
}>;
|
|
831
832
|
|
|
832
|
-
export declare function findUnserializables(thing:
|
|
833
|
+
export declare function findUnserializables<A = unknown>(thing: A): UnserializableDescription[] | undefined;
|
|
833
834
|
|
|
834
835
|
declare interface ForInStatement$1 extends Span$1 {
|
|
835
836
|
type: "ForInStatement";
|
|
@@ -839,7 +840,7 @@ declare interface ForInStatement$1 extends Span$1 {
|
|
|
839
840
|
parent?: Node$1;
|
|
840
841
|
}
|
|
841
842
|
|
|
842
|
-
export declare const forkCoreSchema:
|
|
843
|
+
export declare const forkCoreSchema: JsonSchema;
|
|
843
844
|
|
|
844
845
|
export declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
845
846
|
readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
@@ -1059,7 +1060,7 @@ export declare interface Ignorer {
|
|
|
1059
1060
|
|
|
1060
1061
|
export declare type Immutable<T> = T extends ImmutablePrimitive ? T : T extends Array<infer U> ? ReadonlyArray<Immutable<U>> : T extends Map<infer K, infer V> ? ReadonlyMap<Immutable<K>, Immutable<V>> : T extends Set<infer M> ? ReadonlySet<Immutable<M>> : T extends RegExp ? Readonly<RegExp> : { readonly [K in keyof T]: Immutable<T[K]>; };
|
|
1061
1062
|
|
|
1062
|
-
export declare type ImmutablePrimitive = Primitive | ((...args: never[]) =>
|
|
1063
|
+
export declare type ImmutablePrimitive = Primitive | ((...args: never[]) => void);
|
|
1063
1064
|
|
|
1064
1065
|
declare interface ImportAttribute$1 extends Span$1 {
|
|
1065
1066
|
type: "ImportAttribute";
|
|
@@ -1100,7 +1101,7 @@ declare interface ImportExpression$1 extends Span$1 {
|
|
|
1100
1101
|
parent?: Node$1;
|
|
1101
1102
|
}
|
|
1102
1103
|
|
|
1103
|
-
export declare function importModule(moduleName: string): Effect.Effect<
|
|
1104
|
+
export declare function importModule<A = unknown>(moduleName: string): Effect.Effect<A, StrykerError>;
|
|
1104
1105
|
|
|
1105
1106
|
declare interface ImportNamespaceSpecifier extends Span$1 {
|
|
1106
1107
|
type: "ImportNamespaceSpecifier";
|
|
@@ -1355,8 +1356,8 @@ declare interface LabelIdentifier$1 extends Span$1 {
|
|
|
1355
1356
|
|
|
1356
1357
|
export declare const loadConfigCell: typeof readConfig;
|
|
1357
1358
|
|
|
1358
|
-
export declare interface LoadedPlugins {
|
|
1359
|
-
readonly schemaContributions: readonly Record<string,
|
|
1359
|
+
export declare interface LoadedPlugins<A = unknown> {
|
|
1360
|
+
readonly schemaContributions: readonly Record<string, A>[];
|
|
1360
1361
|
readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
|
|
1361
1362
|
readonly pluginModulePaths: readonly string[];
|
|
1362
1363
|
readonly pluginSources: readonly PluginSource[];
|
|
@@ -2224,7 +2225,7 @@ declare interface SequenceExpression$1 extends Span$1 {
|
|
|
2224
2225
|
parent?: Node$1;
|
|
2225
2226
|
}
|
|
2226
2227
|
|
|
2227
|
-
export declare const shouldKeepTempDir: (exit: Exit.Exit<
|
|
2228
|
+
export declare const shouldKeepTempDir: <A = unknown, E = unknown>(exit: Exit.Exit<A, E>, cleanTempDir: 'always' | boolean) => boolean;
|
|
2228
2229
|
|
|
2229
2230
|
declare type SimpleAssignmentTarget$1 = IdentifierReference$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSNonNullExpression$1 | TSTypeAssertion$1 | MemberExpression$1;
|
|
2230
2231
|
|
|
@@ -3118,11 +3119,11 @@ declare interface V8IntrinsicExpression extends Span$1 {
|
|
|
3118
3119
|
parent?: Node$1;
|
|
3119
3120
|
}
|
|
3120
3121
|
|
|
3121
|
-
export declare function validateOptions(options: Record<string,
|
|
3122
|
+
export declare function validateOptions<A = unknown>(options: Record<string, A>, schema: ValidationSchemaDocument): Effect.Effect<StrykerOptions, ConfigError>;
|
|
3122
3123
|
|
|
3123
|
-
export declare type ValidationSchemaDocument = {
|
|
3124
|
-
readonly properties?:
|
|
3125
|
-
readonly [key: string]:
|
|
3124
|
+
export declare type ValidationSchemaDocument<A = unknown> = {
|
|
3125
|
+
readonly properties?: A;
|
|
3126
|
+
readonly [key: string]: A;
|
|
3126
3127
|
};
|
|
3127
3128
|
|
|
3128
3129
|
declare interface VariableDeclaration$1 extends Span$1 {
|
|
@@ -3237,7 +3238,7 @@ export declare interface VmPlatform {
|
|
|
3237
3238
|
readonly vm: VmModule;
|
|
3238
3239
|
}
|
|
3239
3240
|
|
|
3240
|
-
export declare type VmRequire = (specifier: string) =>
|
|
3241
|
+
export declare type VmRequire = <A = unknown>(specifier: string) => A;
|
|
3241
3242
|
|
|
3242
3243
|
export declare class VmRunner extends VmRunner_base {}
|
|
3243
3244
|
|
|
@@ -3250,7 +3251,7 @@ export declare const vmRunnerCapabilities: {
|
|
|
3250
3251
|
export declare const vmRunnerName = "vm";
|
|
3251
3252
|
|
|
3252
3253
|
export declare interface VmScript {
|
|
3253
|
-
readonly runInContext: (context: object) =>
|
|
3254
|
+
readonly runInContext: <A = unknown>(context: object) => A;
|
|
3254
3255
|
}
|
|
3255
3256
|
|
|
3256
3257
|
export declare const vmTestRunner: (config: VmTestRunnerConfig) => Effect.Effect<PooledTestRunner, TestRunnerFailed, FileSystem.FileSystem | VmRunner>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
1
|
+
import { A as MetricsSchema, B as ReporterEventBatch, C as CheckerRequest, D as FileResultSchema, E as ExitClass, F as MutationTestingPlanReady, H as ReporterInitOptions, M as MutantTested, N as MutationTestReportReady, P as MutationTestResultSchema, R as ReporterAck, S as CheckerMutantWire, T as DryRunCompleted, U as ReporterRpcs, W as StrykerOptionsSchema, X as TraceContextMiddleware, _ as RunStarted, b as CheckerFailed, c as PhaseEntered, dt as PositionSchema, et as WorkerPluginKind, h as RunPhase, i as HelpRendered, j as MutantResultSchema, l as PlanKnown, lt as MutantActivationSchema, m as RunMutantTested, n as StageError, p as RunFailed, q as TestRunnerConfigSchema, r as Heartbeat, st as LocationSchema, ut as MutantStatusSchema, v as VerdictReached, w as CheckerRpcs, x as CheckerGroupResult, y as CheckerCheckResult, z as ReporterDrained } from "./Run.schema-B_KpPeBA.mjs";
|
|
2
|
+
import { $ as OutOfMemoryError, A as strykerVersion, At as defaultOptions, B as initialExtendsStepState, C as checkerMutantsSkipped, Ct as extendsPropertySchema, D as CheckerSkippedRequested, Dt as SUPPORTED_CONFIG_FILE_NAMES, E as CheckerAnsweredUnrequested, Et as CONFIG_SYNTAX_HELP, F as spawnReporterWorker, Ft as toRelativeNormalizedFileName, G as buildTestRunner, H as mergeConfigs, I as decideExtendsStep, It as RunEvents, J as connectRetry, K as isCommandRunner, L as describeErrors, Lt as RunIdentity, M as RunEnvironment, Mt as isModuleSpecifier, N as REPORTER_EVENT_BATCH_BOUND, Nt as isWarningEnabled, O as createFileMatcher, Ot as createDefaultOptions, P as reporterWorkerFactory, Pt as optionsPath, Q as ChildProcessCrashedError, R as forkCoreSchema, Rt as RunEventWireLine, S as checkerMutantsChecked, St as ReadConfigCommand, T as checkerRpcFailures, Tt as survivorsPriorReport, U as readConfig, V as loadConfigCell, W as validateOptions, X as IdGenerator, Y as makeWorkerClient, Z as classifyWorkerExit, _ as verdictExitClass, _t as ExtendsStepResolve, a as RUN_EVENTS_QUEUE_BOUND, at as vmTestRunner, b as checkGroupedPlans, bt as MergeCommand, c as shouldKeepTempDir, ct as ConfigError, d as buildVerdictEnvelope, dt as ConfigFileUnreadableError, et as WorkerBootTimeoutError, f as generateRunId, ft as ConfigFileUnsupportedError, g as resolveExitCode, gt as ExtendsStepRefused, h as highestExitClass, ht as ExtendsStepRead, i as makeRunEventStream, it as vmRunnerName, j as IncrementalReportSchema, jt as findUnserializables, k as matchesFile, kt as deepFreeze, l as ACTIONABLE_STATUSES, lt as ConfigFileInvalidError, m as EXIT_CODE, mt as ExtendsStepDone, n as RunEventDrain, nt as isVmRunner, o as makeRunLayer, ot as StrykerError, p as isActionableStatus, pt as ExtendsStepDocumentSchema, q as WorkerLauncher, r as RunEventDrainLive, rt as vmRunnerCapabilities, s as mutationTestCell, st as ConfigDocumentSchema, t as strykerCell, tt as VmRunner, u as VERDICT_ENVELOPE_SCHEMA_VERSION, ut as ConfigFileNotFoundError, v as calculateMetrics, vt as ExtendsStepStateSchema, w as checkerProcessCrashes, wt as forkOptionsSchema, x as checkerDuration, xt as MergeResult, y as countMutants, yt as ImportedModuleSchema, z as importModule, zt as S } from "./src-BkTsNvl0.mjs";
|
|
3
3
|
export { ACTIONABLE_STATUSES, CONFIG_SYNTAX_HELP, CheckerAnsweredUnrequested, CheckerCheckResult, CheckerFailed, CheckerGroupResult, CheckerMutantWire, CheckerRequest, CheckerRpcs, CheckerSkippedRequested, ChildProcessCrashedError, ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, DryRunCompleted, EXIT_CODE, ExitClass, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepStateSchema, FileResultSchema, Heartbeat, HelpRendered, IdGenerator, ImportedModuleSchema, IncrementalReportSchema, LocationSchema, MergeCommand, MergeResult, MetricsSchema, MutantActivationSchema, MutantResultSchema, MutantStatusSchema, MutantTested, MutationTestReportReady, MutationTestResultSchema, MutationTestingPlanReady, OutOfMemoryError, PhaseEntered, PlanKnown, PositionSchema, REPORTER_EVENT_BATCH_BOUND, RUN_EVENTS_QUEUE_BOUND, ReadConfigCommand, ReporterAck, ReporterDrained, ReporterEventBatch, ReporterInitOptions, ReporterRpcs, RunEnvironment, RunEventDrain, RunEventDrainLive, RunEventWireLine, RunEvents, RunFailed, RunIdentity, RunMutantTested, RunPhase, RunStarted, S, SUPPORTED_CONFIG_FILE_NAMES, StageError, StrykerError, StrykerOptionsSchema, TestRunnerConfigSchema, TraceContextMiddleware, VERDICT_ENVELOPE_SCHEMA_VERSION, VerdictReached, VmRunner, WorkerBootTimeoutError, WorkerLauncher, WorkerPluginKind, buildTestRunner, buildVerdictEnvelope, calculateMetrics, checkGroupedPlans, checkerDuration, checkerMutantsChecked, checkerMutantsSkipped, checkerProcessCrashes, checkerRpcFailures, classifyWorkerExit, connectRetry, countMutants, createDefaultOptions, createFileMatcher, decideExtendsStep, deepFreeze, defaultOptions, describeErrors, extendsPropertySchema, findUnserializables, forkCoreSchema, forkOptionsSchema, generateRunId, highestExitClass, importModule, initialExtendsStepState, isActionableStatus, isCommandRunner, isModuleSpecifier, isVmRunner, isWarningEnabled, loadConfigCell, makeRunEventStream, makeRunLayer, makeWorkerClient, matchesFile, mergeConfigs, mutationTestCell, optionsPath, readConfig, reporterWorkerFactory, resolveExitCode, shouldKeepTempDir, spawnReporterWorker, strykerCell, strykerVersion, survivorsPriorReport, toRelativeNormalizedFileName, validateOptions, verdictExitClass, vmRunnerCapabilities, vmRunnerName, vmTestRunner };
|