@systemfsoftware/stryker-js 10.2.0 → 11.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 +6 -0
- package/README.md +34 -26
- package/dist/Run.schema-B_qdjbe9.mjs +226 -0
- package/dist/{Run.schema-B-Pi3bCB.d.mts → Run.schema-CUpTIyrj.d.mts} +91 -19
- package/dist/RunEnvironment.service-zgwzyXpO.d.mts +456 -0
- package/dist/config.d.mts +6 -22
- package/dist/config.mjs +2 -7
- package/dist/{Run.schema-Ba34IwAY.mjs → dist-ClUhPgb6.mjs} +3432 -4856
- package/dist/{dist-CjdAPjrJ.mjs → dist-DKhCurgc.mjs} +95 -1
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/index-CMCCQdTd.d.mts +4087 -0
- package/dist/index.d.mts +1084 -3321
- package/dist/index.mjs +116 -3
- package/dist/main.mjs +114296 -87310
- package/dist/promises.d.mts +4 -4
- package/dist/promises.mjs +6 -10
- package/dist/{rolldown-runtime-XITHOX9H.mjs → rolldown-runtime-8H4AJuhK.mjs} +1 -2
- package/dist/run-stages.cell-CPpkn7og.mjs +8639 -0
- package/dist/stryker-config.schema-CCnDtVuW.mjs +82 -0
- package/dist/stryker-config.schema-lr7GMjpY.d.mts +35 -0
- package/package.json +31 -46
- package/dist/compiler-BTpMWGqK.mjs +0 -48955
- package/dist/compiler-CEwQzMxZ.mjs +0 -48955
- package/dist/dist-Cpq7Esc3.mjs +0 -17404
- package/dist/dist-Dmv1WEP8.mjs +0 -5337
- package/dist/dist-DsmXFb2_.mjs +0 -17404
- package/dist/index-tt2EziOT.d.mts +0 -1216
- package/dist/merge-config-CHZWyvVQ.mjs +0 -19
- package/dist/mutation-test.cell-Dq23b2NP.d.mts +0 -1758
- package/dist/output-mode-CfGHDpi5.d.mts +0 -17
- package/dist/sourcemap-codec-qFD3eFBj.mjs +0 -186
- package/dist/src-CcqEZJIY.mjs +0 -6559
|
@@ -1,1216 +0,0 @@
|
|
|
1
|
-
import * as Effect$1 from "effect/Effect";
|
|
2
|
-
import * as Context from "effect/Context";
|
|
3
|
-
import * as Option from "effect/Option";
|
|
4
|
-
import * as S from "effect/Schema";
|
|
5
|
-
import { Schema } from "effect";
|
|
6
|
-
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
7
|
-
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
8
|
-
import * as RpcMiddleware from "effect/unstable/rpc/RpcMiddleware";
|
|
9
|
-
import * as HashMap from "effect/HashMap";
|
|
10
|
-
import { YieldableError } from "effect/Cause";
|
|
11
|
-
import { JsonSchema } from "effect/JsonSchema";
|
|
12
|
-
import { StandardSchemaV1 } from "effect/StandardSchema";
|
|
13
|
-
declare namespace index_d_exports$1 {
|
|
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 };
|
|
15
|
-
}
|
|
16
|
-
declare const causeText: <A = unknown>(cause: A, depth: number) => string | undefined;
|
|
17
|
-
declare interface Coverage {
|
|
18
|
-
readonly static: CoverageData;
|
|
19
|
-
readonly perTest: CoveragePerTestId;
|
|
20
|
-
}
|
|
21
|
-
declare type CoverageData = Record<string, number>;
|
|
22
|
-
declare type CoveragePerTestId = Record<string, CoverageData>;
|
|
23
|
-
declare const disableTypeChecks: (file: File_2) => Effect$1.Effect<File_2, InstrumentError>;
|
|
24
|
-
declare interface EarlyResultPlan {
|
|
25
|
-
readonly plan: 'EarlyResult';
|
|
26
|
-
readonly mutant: Mutant;
|
|
27
|
-
}
|
|
28
|
-
declare interface ErrnoException extends Error {
|
|
29
|
-
code?: string;
|
|
30
|
-
errno?: number;
|
|
31
|
-
path?: string;
|
|
32
|
-
syscall?: string;
|
|
33
|
-
}
|
|
34
|
-
declare const ERROR_CODES: Readonly<{
|
|
35
|
-
NoSuchFileOrDirectory: 'ENOENT';
|
|
36
|
-
}>;
|
|
37
|
-
declare function errorToString<A = unknown>(error: A): string;
|
|
38
|
-
declare interface File_2 extends FileDescription {
|
|
39
|
-
name: string;
|
|
40
|
-
content: string;
|
|
41
|
-
}
|
|
42
|
-
declare interface FileDescription {
|
|
43
|
-
readonly mutate: MutateDescription;
|
|
44
|
-
}
|
|
45
|
-
declare type FileDescriptions = Record<string, FileDescription>;
|
|
46
|
-
declare const instrument: (files: readonly File_2[], options: InstrumenterOptions, basePath?: string) => Effect$1.Effect<InstrumentResult, InstrumentError>;
|
|
47
|
-
declare const INSTRUMENTER_CONSTANTS: Readonly<{
|
|
48
|
-
NAMESPACE: '__stryker__';
|
|
49
|
-
MUTATION_COVERAGE_OBJECT: 'mutantCoverage';
|
|
50
|
-
ACTIVE_MUTANT: 'activeMutant';
|
|
51
|
-
CURRENT_TEST_ID: 'currentTestId';
|
|
52
|
-
HIT_COUNT: 'hitCount';
|
|
53
|
-
HIT_LIMIT: 'hitLimit';
|
|
54
|
-
ACTIVE_MUTANT_ENV_VARIABLE: '__STRYKER_ACTIVE_MUTANT__';
|
|
55
|
-
}>;
|
|
56
|
-
declare interface InstrumenterContext {
|
|
57
|
-
activeMutant?: string;
|
|
58
|
-
currentTestId?: string;
|
|
59
|
-
mutantCoverage?: MutantCoverage;
|
|
60
|
-
hitCount?: number;
|
|
61
|
-
hitLimit?: number;
|
|
62
|
-
}
|
|
63
|
-
declare type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
|
|
64
|
-
declare const InstrumenterOptionsSchema: S.Struct<{
|
|
65
|
-
readonly excludedMutations: S.$Array<S.String>;
|
|
66
|
-
readonly ignorers: S.$Array<S.Unknown>;
|
|
67
|
-
readonly noHeader: S.optional<S.Boolean>;
|
|
68
|
-
readonly optInMutations: S.optional<S.$Array<S.String>>;
|
|
69
|
-
}>;
|
|
70
|
-
declare class InstrumentError extends InstrumentError_base {
|
|
71
|
-
get message(): string;
|
|
72
|
-
}
|
|
73
|
-
declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
|
|
74
|
-
readonly message: S.String;
|
|
75
|
-
readonly cause: S.Defect;
|
|
76
|
-
}>, YieldableError>;
|
|
77
|
-
declare interface InstrumentResult {
|
|
78
|
-
files: readonly File_2[];
|
|
79
|
-
mutants: readonly Mutant[];
|
|
80
|
-
}
|
|
81
|
-
declare function isErrnoException(error: unknown): error is ErrnoException;
|
|
82
|
-
declare const isMutant: (value: unknown) => value is Mutant;
|
|
83
|
-
declare type Location = typeof LocationSchema.Type;
|
|
84
|
-
declare const LocationSchema: S.Struct<{
|
|
85
|
-
readonly start: S.Struct<{
|
|
86
|
-
readonly line: S.Finite;
|
|
87
|
-
readonly column: S.Finite;
|
|
88
|
-
}>;
|
|
89
|
-
readonly end: S.Struct<{
|
|
90
|
-
readonly line: S.Finite;
|
|
91
|
-
readonly column: S.Finite;
|
|
92
|
-
}>;
|
|
93
|
-
}>;
|
|
94
|
-
declare class Mutant extends Mutant_base {}
|
|
95
|
-
declare const Mutant_base: S.Class<Mutant, S.TaggedStruct<"Mutant", {
|
|
96
|
-
readonly id: S.NonEmptyString;
|
|
97
|
-
readonly fileName: S.NonEmptyString;
|
|
98
|
-
readonly mutatorName: S.NonEmptyString;
|
|
99
|
-
readonly replacement: S.String;
|
|
100
|
-
readonly location: S.Struct<{
|
|
101
|
-
readonly start: S.Struct<{
|
|
102
|
-
readonly line: S.Finite;
|
|
103
|
-
readonly column: S.Finite;
|
|
104
|
-
}>;
|
|
105
|
-
readonly end: S.Struct<{
|
|
106
|
-
readonly line: S.Finite;
|
|
107
|
-
readonly column: S.Finite;
|
|
108
|
-
}>;
|
|
109
|
-
}>;
|
|
110
|
-
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
|
|
111
|
-
readonly statusReason: S.optional<S.String>;
|
|
112
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
113
|
-
readonly static: S.optional<S.Boolean>;
|
|
114
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
115
|
-
readonly description: S.optional<S.String>;
|
|
116
|
-
}>, {}>;
|
|
117
|
-
declare type MutantActivation = typeof MutantActivationSchema.Type;
|
|
118
|
-
declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
|
|
119
|
-
declare interface MutantCoverage {
|
|
120
|
-
readonly perTest: Record<string, Record<string, number>>;
|
|
121
|
-
readonly static: Record<string, number>;
|
|
122
|
-
}
|
|
123
|
-
declare type MutantEarlyResultPlan = EarlyResultPlan;
|
|
124
|
-
declare interface MutantRunOptions extends RunOptions {
|
|
125
|
-
readonly testFilter?: readonly string[];
|
|
126
|
-
readonly hitLimit?: number;
|
|
127
|
-
readonly activeMutant: Mutant;
|
|
128
|
-
readonly sandboxFileName: string;
|
|
129
|
-
readonly mutantActivation: MutantActivation;
|
|
130
|
-
readonly reloadEnvironment: boolean;
|
|
131
|
-
}
|
|
132
|
-
declare const MutantRunOptionsSchema: S.Struct<{
|
|
133
|
-
readonly timeout: S.Finite;
|
|
134
|
-
readonly disableBail: S.Boolean;
|
|
135
|
-
readonly activeMutant: typeof Mutant;
|
|
136
|
-
readonly sandboxFileName: S.String;
|
|
137
|
-
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
138
|
-
readonly reloadEnvironment: S.Boolean;
|
|
139
|
-
readonly testFilter: S.optionalKey<S.$Array<S.String>>;
|
|
140
|
-
readonly hitLimit: S.optionalKey<S.Finite>;
|
|
141
|
-
}>;
|
|
142
|
-
declare type MutantRunPlan = RunPlan;
|
|
143
|
-
declare type MutantStatus = typeof MutantStatusSchema.Type;
|
|
144
|
-
declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
145
|
-
declare type MutantTestCoverage = Mutant & {
|
|
146
|
-
readonly coveredBy: ReadonlyArray<string> | undefined;
|
|
147
|
-
readonly static: boolean | undefined;
|
|
148
|
-
};
|
|
149
|
-
declare type MutantTestPlan = TestPlan;
|
|
150
|
-
declare type MutateDescription = ReadonlyArray<MutationRange> | boolean;
|
|
151
|
-
declare interface MutationRange {
|
|
152
|
-
readonly start: Position;
|
|
153
|
-
readonly end: Position;
|
|
154
|
-
}
|
|
155
|
-
declare function normalizeFileName(fileName: string): string;
|
|
156
|
-
declare type OpenEndLocation = typeof OpenEndLocationSchema.Type;
|
|
157
|
-
declare const OpenEndLocationSchema: S.Struct<{
|
|
158
|
-
readonly start: S.Struct<{
|
|
159
|
-
readonly line: S.Finite;
|
|
160
|
-
readonly column: S.Finite;
|
|
161
|
-
}>;
|
|
162
|
-
readonly end: S.optional<S.Struct<{
|
|
163
|
-
readonly line: S.Finite;
|
|
164
|
-
readonly column: S.Finite;
|
|
165
|
-
}>>;
|
|
166
|
-
}>;
|
|
167
|
-
declare interface ParserOptions {}
|
|
168
|
-
declare type Position = typeof PositionSchema.Type;
|
|
169
|
-
declare const PositionSchema: S.Struct<{
|
|
170
|
-
readonly line: S.Finite;
|
|
171
|
-
readonly column: S.Finite;
|
|
172
|
-
}>;
|
|
173
|
-
declare type RunMutantResult = Mutant & {
|
|
174
|
-
readonly status: MutantStatus;
|
|
175
|
-
readonly statusReason?: string | undefined;
|
|
176
|
-
readonly testsCompleted?: number | undefined;
|
|
177
|
-
readonly killedBy?: readonly string[] | undefined;
|
|
178
|
-
readonly coveredBy?: readonly string[] | undefined;
|
|
179
|
-
readonly static?: boolean | undefined;
|
|
180
|
-
};
|
|
181
|
-
declare interface RunOptions {
|
|
182
|
-
readonly timeout: number;
|
|
183
|
-
readonly disableBail: boolean;
|
|
184
|
-
}
|
|
185
|
-
declare const RunOptionsFields: {
|
|
186
|
-
timeout: S.Finite;
|
|
187
|
-
disableBail: S.Boolean;
|
|
188
|
-
};
|
|
189
|
-
declare interface RunPlan {
|
|
190
|
-
readonly plan: 'Run';
|
|
191
|
-
readonly mutant: Mutant;
|
|
192
|
-
readonly runOptions: MutantRunOptions;
|
|
193
|
-
readonly netTime: number;
|
|
194
|
-
}
|
|
195
|
-
declare type TestPlan = EarlyResultPlan | RunPlan;
|
|
196
|
-
declare namespace index_d_exports {
|
|
197
|
-
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 };
|
|
198
|
-
}
|
|
199
|
-
declare interface BaseTestResult {
|
|
200
|
-
readonly id: string;
|
|
201
|
-
readonly name: string;
|
|
202
|
-
readonly timeSpentMs: number;
|
|
203
|
-
readonly fileName?: string;
|
|
204
|
-
readonly startPosition?: Position;
|
|
205
|
-
}
|
|
206
|
-
declare type BoundaryError = typeof BoundaryErrorSchema.Type;
|
|
207
|
-
declare const BoundaryErrorSchema: S.Union<readonly [typeof BoundaryPayloadRejected, typeof BoundaryUnrecognizedSignal, typeof TestRunnerFailed, typeof CheckerFailed, typeof ReporterFailed]>;
|
|
208
|
-
declare class BoundaryPayloadRejected extends BoundaryPayloadRejected_base {}
|
|
209
|
-
declare const BoundaryPayloadRejected_base: S.Class<BoundaryPayloadRejected, S.TaggedStruct<"BoundaryPayloadRejected", {
|
|
210
|
-
readonly pluginName: S.String;
|
|
211
|
-
readonly method: S.String;
|
|
212
|
-
readonly cause: S.String;
|
|
213
|
-
}>, YieldableError>;
|
|
214
|
-
declare class BoundaryUnrecognizedSignal extends BoundaryUnrecognizedSignal_base {}
|
|
215
|
-
declare const BoundaryUnrecognizedSignal_base: S.Class<BoundaryUnrecognizedSignal, S.TaggedStruct<"BoundaryUnrecognizedSignal", {
|
|
216
|
-
readonly pluginName: S.String;
|
|
217
|
-
readonly method: S.String;
|
|
218
|
-
readonly signal: S.String;
|
|
219
|
-
}>, YieldableError>;
|
|
220
|
-
declare type BrandingInformation = typeof BrandingInformationSchema.Type;
|
|
221
|
-
declare const BrandingInformationSchema: S.Struct<{
|
|
222
|
-
readonly homepageUrl: S.String;
|
|
223
|
-
readonly imageUrl: S.optional<S.String>;
|
|
224
|
-
}>;
|
|
225
|
-
declare class Checker extends Checker_base {}
|
|
226
|
-
declare const Checker_base: Context.ServiceClass<Checker, "@systemfsoftware/stryker-js-plugin-interface/Checker", CheckerService>;
|
|
227
|
-
declare const CheckerCheckResult: S.$Record<S.String, S.Union<readonly [S.Struct<{
|
|
228
|
-
readonly status: S.Literal<"passed">;
|
|
229
|
-
}>, S.Struct<{
|
|
230
|
-
readonly status: S.Literal<"compileError">;
|
|
231
|
-
readonly reason: S.String;
|
|
232
|
-
}>]>>;
|
|
233
|
-
declare type CheckerCustomConfig = typeof CheckerCustomConfigSchema.Type;
|
|
234
|
-
declare const CheckerCustomConfigSchema: S.Struct<{
|
|
235
|
-
readonly plugin: S.String;
|
|
236
|
-
readonly nodeArgs: S.optional<S.$Array<S.String>>;
|
|
237
|
-
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
238
|
-
}>;
|
|
239
|
-
declare type CheckerEntryConfig = typeof CheckerEntryConfigSchema.Type;
|
|
240
|
-
declare const CheckerEntryConfigSchema: S.Struct<{
|
|
241
|
-
readonly plugin: S.String;
|
|
242
|
-
readonly nodeArgs: S.optional<S.$Array<S.String>>;
|
|
243
|
-
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
244
|
-
}>;
|
|
245
|
-
declare class CheckerFailed extends CheckerFailed_base {}
|
|
246
|
-
declare const CheckerFailed_base: S.Class<CheckerFailed, S.TaggedStruct<"CheckerFailed", {
|
|
247
|
-
readonly cause: S.String;
|
|
248
|
-
readonly checkerName: S.String;
|
|
249
|
-
readonly mutantIds: S.$Array<S.String>;
|
|
250
|
-
}>, YieldableError>;
|
|
251
|
-
declare const CheckerGroupResult: S.$Array<S.$Array<S.String>>;
|
|
252
|
-
declare const CheckerMutantWire: S.Struct<{
|
|
253
|
-
readonly id: S.NonEmptyString;
|
|
254
|
-
readonly fileName: S.NonEmptyString;
|
|
255
|
-
readonly mutatorName: S.NonEmptyString;
|
|
256
|
-
readonly replacement: S.String;
|
|
257
|
-
readonly location: S.Struct<{
|
|
258
|
-
readonly start: S.Struct<{
|
|
259
|
-
readonly line: S.Finite;
|
|
260
|
-
readonly column: S.Finite;
|
|
261
|
-
}>;
|
|
262
|
-
readonly end: S.Struct<{
|
|
263
|
-
readonly line: S.Finite;
|
|
264
|
-
readonly column: S.Finite;
|
|
265
|
-
}>;
|
|
266
|
-
}>;
|
|
267
|
-
}>;
|
|
268
|
-
declare type CheckerMutantWire = typeof CheckerMutantWire.Type;
|
|
269
|
-
declare const CheckerRequest: S.Struct<{
|
|
270
|
-
readonly checkerName: S.String;
|
|
271
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
272
|
-
readonly id: S.NonEmptyString;
|
|
273
|
-
readonly fileName: S.NonEmptyString;
|
|
274
|
-
readonly mutatorName: S.NonEmptyString;
|
|
275
|
-
readonly replacement: S.String;
|
|
276
|
-
readonly location: S.Struct<{
|
|
277
|
-
readonly start: S.Struct<{
|
|
278
|
-
readonly line: S.Finite;
|
|
279
|
-
readonly column: S.Finite;
|
|
280
|
-
}>;
|
|
281
|
-
readonly end: S.Struct<{
|
|
282
|
-
readonly line: S.Finite;
|
|
283
|
-
readonly column: S.Finite;
|
|
284
|
-
}>;
|
|
285
|
-
}>;
|
|
286
|
-
}>>;
|
|
287
|
-
}>;
|
|
288
|
-
declare type CheckerRequest = typeof CheckerRequest.Type;
|
|
289
|
-
declare const CheckerRpcs: RpcGroup.RpcGroup<TracedRpc<'check', typeof CheckerRequest, typeof CheckerCheckResult, typeof CheckerFailed> | TracedRpc<'group', typeof CheckerRequest, typeof CheckerGroupResult, typeof CheckerFailed>>;
|
|
290
|
-
declare interface CheckerService {
|
|
291
|
-
readonly init: Effect$1.Effect<void, CheckerFailed>;
|
|
292
|
-
readonly check: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
|
|
293
|
-
readonly group: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<readonly (readonly string[])[], CheckerFailed>;
|
|
294
|
-
}
|
|
295
|
-
declare type CheckResult = FailedCheckResult | PassedCheckResult;
|
|
296
|
-
declare const CheckResultSchema: S.Union<readonly [S.Struct<{
|
|
297
|
-
readonly status: S.Literal<"passed">;
|
|
298
|
-
}>, S.Struct<{
|
|
299
|
-
readonly status: S.Literal<"compileError">;
|
|
300
|
-
readonly reason: S.String;
|
|
301
|
-
}>]>;
|
|
302
|
-
declare const CheckStatus: S.Literals<readonly ["passed", "compileError"]>;
|
|
303
|
-
declare type CheckStatus = typeof CheckStatus.Type;
|
|
304
|
-
declare type CommandRunnerOptions = S.Schema.Type<typeof CommandRunnerOptionsSchema>;
|
|
305
|
-
declare const CommandRunnerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
306
|
-
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
307
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
308
|
-
declare interface CompleteDryRunResult {
|
|
309
|
-
readonly tests: readonly TestResult[];
|
|
310
|
-
readonly mutantCoverage?: MutantCoverage;
|
|
311
|
-
readonly status: 'complete';
|
|
312
|
-
}
|
|
313
|
-
declare type CoverageAnalysis = 'off' | 'all' | 'perTest';
|
|
314
|
-
declare const CoverageAnalysisMode: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
315
|
-
declare type CoverageAnalysisMode = typeof CoverageAnalysisMode.Type;
|
|
316
|
-
declare const CoverageAnalysisSchema: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
317
|
-
/**
|
|
318
|
-
* Every option optional, all the way down, and mutable: this is the type a
|
|
319
|
-
* caller CONSTRUCTS by assignment, so `readonly` is stripped. The decoded
|
|
320
|
-
* `StrykerOptions` keeps it - that side is read, never built.
|
|
321
|
-
*/
|
|
322
|
-
declare type DeepOptional<T, V = unknown> = { -readonly [P in keyof T]?: T[P] extends Record<string, V> ? DeepOptional<T[P], V> | undefined : T[P]; };
|
|
323
|
-
declare type Dependencies = typeof DependenciesSchema.Type;
|
|
324
|
-
declare const DependenciesSchema: S.$Record<S.String, S.String>;
|
|
325
|
-
declare const DetectedStatus: S.Union<readonly [S.Literal<"Killed">, S.Literal<"Timeout">]>;
|
|
326
|
-
declare class DryRunCompleted extends DryRunCompleted_base {}
|
|
327
|
-
declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dryRunCompleted", {
|
|
328
|
-
readonly timing: S.Struct<{
|
|
329
|
-
readonly net: S.Finite;
|
|
330
|
-
readonly overhead: S.Finite;
|
|
331
|
-
}>;
|
|
332
|
-
readonly capabilities: S.Struct<{
|
|
333
|
-
readonly reloadEnvironment: S.Boolean;
|
|
334
|
-
}>;
|
|
335
|
-
readonly testCount: S.Int;
|
|
336
|
-
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
337
|
-
readonly id: S.String;
|
|
338
|
-
readonly name: S.String;
|
|
339
|
-
readonly timeSpentMs: S.Finite;
|
|
340
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
341
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
342
|
-
readonly line: S.Finite;
|
|
343
|
-
readonly column: S.Finite;
|
|
344
|
-
}>>;
|
|
345
|
-
readonly status: S.Literal<"failed">;
|
|
346
|
-
readonly failureMessage: S.String;
|
|
347
|
-
}>, S.Struct<{
|
|
348
|
-
readonly id: S.String;
|
|
349
|
-
readonly name: S.String;
|
|
350
|
-
readonly timeSpentMs: S.Finite;
|
|
351
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
352
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
353
|
-
readonly line: S.Finite;
|
|
354
|
-
readonly column: S.Finite;
|
|
355
|
-
}>>;
|
|
356
|
-
readonly status: S.Literal<"skipped">;
|
|
357
|
-
}>, S.Struct<{
|
|
358
|
-
readonly id: S.String;
|
|
359
|
-
readonly name: S.String;
|
|
360
|
-
readonly timeSpentMs: S.Finite;
|
|
361
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
362
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
363
|
-
readonly line: S.Finite;
|
|
364
|
-
readonly column: S.Finite;
|
|
365
|
-
}>>;
|
|
366
|
-
readonly status: S.Literal<"success">;
|
|
367
|
-
}>]>>;
|
|
368
|
-
}>, {}>;
|
|
369
|
-
declare interface DryRunOptions extends RunOptions {
|
|
370
|
-
readonly coverageAnalysis: CoverageAnalysis;
|
|
371
|
-
readonly files?: readonly string[];
|
|
372
|
-
readonly testFiles?: readonly string[];
|
|
373
|
-
}
|
|
374
|
-
declare const DryRunOptionsSchema: S.Struct<{
|
|
375
|
-
readonly timeout: S.Finite;
|
|
376
|
-
readonly disableBail: S.Boolean;
|
|
377
|
-
readonly coverageAnalysis: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
378
|
-
readonly files: S.optionalKey<S.$Array<S.String>>;
|
|
379
|
-
readonly testFiles: S.optionalKey<S.$Array<S.String>>;
|
|
380
|
-
}>;
|
|
381
|
-
declare type DryRunResult = CompleteDryRunResult | ErrorDryRunResult | TimeoutDryRunResult;
|
|
382
|
-
declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
383
|
-
readonly status: S.Literal<"complete">;
|
|
384
|
-
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
385
|
-
readonly id: S.String;
|
|
386
|
-
readonly name: S.String;
|
|
387
|
-
readonly timeSpentMs: S.Finite;
|
|
388
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
389
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
390
|
-
readonly line: S.Finite;
|
|
391
|
-
readonly column: S.Finite;
|
|
392
|
-
}>>;
|
|
393
|
-
readonly status: S.Literal<"failed">;
|
|
394
|
-
readonly failureMessage: S.String;
|
|
395
|
-
}>, S.Struct<{
|
|
396
|
-
readonly id: S.String;
|
|
397
|
-
readonly name: S.String;
|
|
398
|
-
readonly timeSpentMs: S.Finite;
|
|
399
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
400
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
401
|
-
readonly line: S.Finite;
|
|
402
|
-
readonly column: S.Finite;
|
|
403
|
-
}>>;
|
|
404
|
-
readonly status: S.Literal<"skipped">;
|
|
405
|
-
}>, S.Struct<{
|
|
406
|
-
readonly id: S.String;
|
|
407
|
-
readonly name: S.String;
|
|
408
|
-
readonly timeSpentMs: S.Finite;
|
|
409
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
410
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
411
|
-
readonly line: S.Finite;
|
|
412
|
-
readonly column: S.Finite;
|
|
413
|
-
}>>;
|
|
414
|
-
readonly status: S.Literal<"success">;
|
|
415
|
-
}>]>>;
|
|
416
|
-
readonly mutantCoverage: S.optionalKey<S.Struct<{
|
|
417
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
418
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
419
|
-
}>>;
|
|
420
|
-
}>, S.Struct<{
|
|
421
|
-
readonly status: S.Literal<"timeout">;
|
|
422
|
-
readonly reason: S.optionalKey<S.String>;
|
|
423
|
-
}>, S.Struct<{
|
|
424
|
-
readonly status: S.Literal<"error">;
|
|
425
|
-
readonly errorMessage: S.String;
|
|
426
|
-
}>]>;
|
|
427
|
-
declare const DryRunStatus: S.Literals<readonly ["complete", "error", "timeout"]>;
|
|
428
|
-
declare type DryRunStatus = typeof DryRunStatus.Type;
|
|
429
|
-
declare interface ErrorDryRunResult {
|
|
430
|
-
readonly status: 'error';
|
|
431
|
-
readonly errorMessage: string;
|
|
432
|
-
}
|
|
433
|
-
declare interface ErrorMutantRunResult {
|
|
434
|
-
readonly status: 'error';
|
|
435
|
-
readonly errorMessage: string;
|
|
436
|
-
}
|
|
437
|
-
declare class Evaluator extends Evaluator_base {}
|
|
438
|
-
declare const Evaluator_base: Context.ServiceClass<Evaluator, "@systemfsoftware/stryker-js-plugin-interface/Evaluator", EvaluatorService>;
|
|
439
|
-
declare class EvaluatorFailed extends EvaluatorFailed_base {}
|
|
440
|
-
declare const EvaluatorFailed_base: S.Class<EvaluatorFailed, S.TaggedStruct<"EvaluatorFailed", {
|
|
441
|
-
readonly cause: S.Unknown;
|
|
442
|
-
}>, YieldableError>;
|
|
443
|
-
declare interface EvaluatorService {
|
|
444
|
-
readonly evaluate: (report: MutationTestResult) => Effect$1.Effect<ExitClass | null, EvaluatorFailed>;
|
|
445
|
-
}
|
|
446
|
-
declare const EXIT_CODE: Record<ExitClass, number>;
|
|
447
|
-
declare const ExitClass: S.Literals<readonly ["VerdictFail", "ConfigError", "RuntimeError", "InternalError"]>;
|
|
448
|
-
declare type ExitClass = typeof ExitClass.Type;
|
|
449
|
-
declare interface FailedCheckResult {
|
|
450
|
-
readonly reason: string;
|
|
451
|
-
readonly status: 'compileError';
|
|
452
|
-
}
|
|
453
|
-
declare interface FailedTestResult extends BaseTestResult {
|
|
454
|
-
readonly status: 'failed';
|
|
455
|
-
readonly failureMessage: string;
|
|
456
|
-
}
|
|
457
|
-
declare type FileResult = typeof FileResultSchema.Type;
|
|
458
|
-
declare type FileResultDictionary = typeof FileResultDictionarySchema.Type;
|
|
459
|
-
declare const FileResultDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
460
|
-
readonly language: S.String;
|
|
461
|
-
readonly source: S.String;
|
|
462
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
463
|
-
readonly id: S.String;
|
|
464
|
-
readonly mutatorName: S.String;
|
|
465
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
466
|
-
readonly location: S.Struct<{
|
|
467
|
-
readonly start: S.Struct<{
|
|
468
|
-
readonly line: S.Finite;
|
|
469
|
-
readonly column: S.Finite;
|
|
470
|
-
}>;
|
|
471
|
-
readonly end: S.Struct<{
|
|
472
|
-
readonly line: S.Finite;
|
|
473
|
-
readonly column: S.Finite;
|
|
474
|
-
}>;
|
|
475
|
-
}>;
|
|
476
|
-
readonly replacement: S.optional<S.String>;
|
|
477
|
-
readonly description: S.optional<S.String>;
|
|
478
|
-
readonly statusReason: S.optional<S.String>;
|
|
479
|
-
readonly static: S.optional<S.Boolean>;
|
|
480
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
481
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
482
|
-
readonly testsCompleted: S.optional<S.Int>;
|
|
483
|
-
readonly duration: S.optional<S.Finite>;
|
|
484
|
-
}>>;
|
|
485
|
-
}>>;
|
|
486
|
-
declare const FileResultSchema: S.Struct<{
|
|
487
|
-
readonly language: S.String;
|
|
488
|
-
readonly source: S.String;
|
|
489
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
490
|
-
readonly id: S.String;
|
|
491
|
-
readonly mutatorName: S.String;
|
|
492
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
493
|
-
readonly location: S.Struct<{
|
|
494
|
-
readonly start: S.Struct<{
|
|
495
|
-
readonly line: S.Finite;
|
|
496
|
-
readonly column: S.Finite;
|
|
497
|
-
}>;
|
|
498
|
-
readonly end: S.Struct<{
|
|
499
|
-
readonly line: S.Finite;
|
|
500
|
-
readonly column: S.Finite;
|
|
501
|
-
}>;
|
|
502
|
-
}>;
|
|
503
|
-
readonly replacement: S.optional<S.String>;
|
|
504
|
-
readonly description: S.optional<S.String>;
|
|
505
|
-
readonly statusReason: S.optional<S.String>;
|
|
506
|
-
readonly static: S.optional<S.Boolean>;
|
|
507
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
508
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
509
|
-
readonly testsCompleted: S.optional<S.Int>;
|
|
510
|
-
readonly duration: S.optional<S.Finite>;
|
|
511
|
-
}>>;
|
|
512
|
-
}>;
|
|
513
|
-
declare const formatTraceparent: (parts: TraceContextParts) => Traceparent;
|
|
514
|
-
declare type FrameworkInformation = typeof FrameworkInformationSchema.Type;
|
|
515
|
-
declare const FrameworkInformationSchema: S.Struct<{
|
|
516
|
-
readonly name: S.String;
|
|
517
|
-
readonly version: S.optional<S.String>;
|
|
518
|
-
readonly branding: S.optional<S.Struct<{
|
|
519
|
-
readonly homepageUrl: S.String;
|
|
520
|
-
readonly imageUrl: S.optional<S.String>;
|
|
521
|
-
}>>;
|
|
522
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
523
|
-
}>;
|
|
524
|
-
declare const HIT_LIMIT_REASON_PREFIX = "Hit limit reached";
|
|
525
|
-
declare const hitLimitReachedReason: (count: number, limit: number) => string;
|
|
526
|
-
declare const InvalidStatus: S.Union<readonly [S.Literal<"CompileError">, S.Literal<"RuntimeError">]>;
|
|
527
|
-
declare const isCustomTestRunner: (value: TestRunnerConfig) => value is TestRunnerCustomConfig;
|
|
528
|
-
declare const isHitLimitReason: (reason: string | undefined) => boolean;
|
|
529
|
-
declare const isNamedTrap: (activeMutantId: string, namedTrapId: string | undefined) => boolean;
|
|
530
|
-
declare interface KilledMutantRunResult {
|
|
531
|
-
readonly status: 'killed';
|
|
532
|
-
readonly killedBy: readonly string[];
|
|
533
|
-
readonly failureMessage: string;
|
|
534
|
-
readonly nrOfTests: number;
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* Known keys filters out the index signature from the keys of a type
|
|
538
|
-
* @see https://stackoverflow.com/questions/51465182/typescript-remove-index-signature-using-mapped-types
|
|
539
|
-
*/
|
|
540
|
-
declare type KnownKeys<T> = keyof { [P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; };
|
|
541
|
-
declare const LogLevel: S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>;
|
|
542
|
-
/** The generated module exported these as TypeScript types; consumers still name them that way. */
|
|
543
|
-
declare type LogLevel = typeof LogLevel.Type;
|
|
544
|
-
declare class Metrics extends Metrics_base {
|
|
545
|
-
get totalDetected(): number;
|
|
546
|
-
get totalUndetected(): number;
|
|
547
|
-
get totalCovered(): number;
|
|
548
|
-
get totalValid(): number;
|
|
549
|
-
get totalInvalid(): number;
|
|
550
|
-
get totalMutants(): number;
|
|
551
|
-
get mutationScore(): number;
|
|
552
|
-
get mutationScoreBasedOnCoveredCode(): number;
|
|
553
|
-
static fromMutants(mutants: readonly {
|
|
554
|
-
readonly status: string;
|
|
555
|
-
}[]): Metrics;
|
|
556
|
-
}
|
|
557
|
-
declare const Metrics_base: S.Class<Metrics, S.Struct<{
|
|
558
|
-
readonly pending: S.Int;
|
|
559
|
-
readonly killed: S.Int;
|
|
560
|
-
readonly timeout: S.Int;
|
|
561
|
-
readonly survived: S.Int;
|
|
562
|
-
readonly noCoverage: S.Int;
|
|
563
|
-
readonly runtimeErrors: S.Int;
|
|
564
|
-
readonly compileErrors: S.Int;
|
|
565
|
-
readonly ignored: S.Int;
|
|
566
|
-
}>, {}>;
|
|
567
|
-
declare interface MetricsResult {
|
|
568
|
-
readonly name: string;
|
|
569
|
-
readonly metrics: Metrics;
|
|
570
|
-
readonly childResults: readonly MetricsResult[];
|
|
571
|
-
}
|
|
572
|
-
declare interface MetricsResultEncoded {
|
|
573
|
-
readonly name: string;
|
|
574
|
-
readonly metrics: typeof Metrics.Encoded;
|
|
575
|
-
readonly childResults: readonly MetricsResultEncoded[];
|
|
576
|
-
}
|
|
577
|
-
declare const MetricsResultSchema: S.Codec<MetricsResult, MetricsResultEncoded>;
|
|
578
|
-
declare const MetricsSchema: typeof Metrics;
|
|
579
|
-
declare const MutantCoverageSchema: S.Struct<{
|
|
580
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
581
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
582
|
-
}>;
|
|
583
|
-
declare type MutantResult = typeof MutantResultSchema.Type;
|
|
584
|
-
declare const MutantResultSchema: S.Struct<{
|
|
585
|
-
readonly id: S.String;
|
|
586
|
-
readonly mutatorName: S.String;
|
|
587
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
588
|
-
readonly location: S.Struct<{
|
|
589
|
-
readonly start: S.Struct<{
|
|
590
|
-
readonly line: S.Finite;
|
|
591
|
-
readonly column: S.Finite;
|
|
592
|
-
}>;
|
|
593
|
-
readonly end: S.Struct<{
|
|
594
|
-
readonly line: S.Finite;
|
|
595
|
-
readonly column: S.Finite;
|
|
596
|
-
}>;
|
|
597
|
-
}>;
|
|
598
|
-
readonly replacement: S.optional<S.String>;
|
|
599
|
-
readonly description: S.optional<S.String>;
|
|
600
|
-
readonly statusReason: S.optional<S.String>;
|
|
601
|
-
readonly static: S.optional<S.Boolean>;
|
|
602
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
603
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
604
|
-
readonly testsCompleted: S.optional<S.Int>;
|
|
605
|
-
readonly duration: S.optional<S.Finite>;
|
|
606
|
-
}>;
|
|
607
|
-
declare type MutantRunResult = ErrorMutantRunResult | KilledMutantRunResult | SurvivedMutantRunResult | TimeoutMutantRunResult;
|
|
608
|
-
declare const MutantRunResultSchema: S.Union<readonly [S.Struct<{
|
|
609
|
-
readonly status: S.Literal<"killed">;
|
|
610
|
-
readonly killedBy: S.$Array<S.String>;
|
|
611
|
-
readonly failureMessage: S.String;
|
|
612
|
-
readonly nrOfTests: S.Finite;
|
|
613
|
-
}>, S.Struct<{
|
|
614
|
-
readonly status: S.Literal<"survived">;
|
|
615
|
-
readonly nrOfTests: S.Finite;
|
|
616
|
-
}>, S.Struct<{
|
|
617
|
-
readonly status: S.Literal<"timeout">;
|
|
618
|
-
readonly reason: S.optionalKey<S.String>;
|
|
619
|
-
}>, S.Struct<{
|
|
620
|
-
readonly status: S.Literal<"error">;
|
|
621
|
-
readonly errorMessage: S.String;
|
|
622
|
-
}>]>;
|
|
623
|
-
declare const MutantRunStatus: S.Literals<readonly ["killed", "survived", "timeout", "error"]>;
|
|
624
|
-
declare type MutantRunStatus = typeof MutantRunStatus.Type;
|
|
625
|
-
declare class MutantTested extends MutantTested_base {}
|
|
626
|
-
declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTested", {
|
|
627
|
-
readonly id: S.String;
|
|
628
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
629
|
-
readonly file: S.String;
|
|
630
|
-
readonly location: S.Struct<{
|
|
631
|
-
readonly start: S.Struct<{
|
|
632
|
-
readonly line: S.Finite;
|
|
633
|
-
readonly column: S.Finite;
|
|
634
|
-
}>;
|
|
635
|
-
readonly end: S.Struct<{
|
|
636
|
-
readonly line: S.Finite;
|
|
637
|
-
readonly column: S.Finite;
|
|
638
|
-
}>;
|
|
639
|
-
}>;
|
|
640
|
-
readonly mutator: S.String;
|
|
641
|
-
readonly replacement: S.NullOr<S.String>;
|
|
642
|
-
readonly completed: S.Int;
|
|
643
|
-
readonly total: S.Int;
|
|
644
|
-
}>, {}>;
|
|
645
|
-
declare type MutationScoreThresholds = typeof MutationScoreThresholdsSchema.Type;
|
|
646
|
-
declare const MutationScoreThresholdsSchema: S.decodeTo<S.declare<{
|
|
647
|
-
readonly high: number;
|
|
648
|
-
readonly low: number;
|
|
649
|
-
readonly break: number | null;
|
|
650
|
-
}, {
|
|
651
|
-
readonly high: number;
|
|
652
|
-
readonly low: number;
|
|
653
|
-
readonly break: number | null;
|
|
654
|
-
}>, S.Struct<{
|
|
655
|
-
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
656
|
-
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
657
|
-
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
658
|
-
}>, never, never>;
|
|
659
|
-
declare class MutationTestingPlanReady extends MutationTestingPlanReady_base {}
|
|
660
|
-
declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
|
|
661
|
-
readonly total: S.Int;
|
|
662
|
-
readonly plans: S.$Array<S.Struct<{
|
|
663
|
-
readonly mutantId: S.String;
|
|
664
|
-
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
665
|
-
readonly netTime: S.Finite;
|
|
666
|
-
readonly reloadEnvironment: S.Boolean;
|
|
667
|
-
}>>;
|
|
668
|
-
}>, {}>;
|
|
669
|
-
declare class MutationTestReportReady extends MutationTestReportReady_base {}
|
|
670
|
-
declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.TaggedStruct<"mutationTestReportReady", {
|
|
671
|
-
readonly report: S.Struct<{
|
|
672
|
-
readonly schemaVersion: S.String;
|
|
673
|
-
readonly files: S.$Record<S.String, S.Struct<{
|
|
674
|
-
readonly language: S.String;
|
|
675
|
-
readonly source: S.String;
|
|
676
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
677
|
-
readonly id: S.String;
|
|
678
|
-
readonly mutatorName: S.String;
|
|
679
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
680
|
-
readonly location: S.Struct<{
|
|
681
|
-
readonly start: S.Struct<{
|
|
682
|
-
readonly line: S.Finite;
|
|
683
|
-
readonly column: S.Finite;
|
|
684
|
-
}>;
|
|
685
|
-
readonly end: S.Struct<{
|
|
686
|
-
readonly line: S.Finite;
|
|
687
|
-
readonly column: S.Finite;
|
|
688
|
-
}>;
|
|
689
|
-
}>;
|
|
690
|
-
readonly replacement: S.optional<S.String>;
|
|
691
|
-
readonly description: S.optional<S.String>;
|
|
692
|
-
readonly statusReason: S.optional<S.String>;
|
|
693
|
-
readonly static: S.optional<S.Boolean>;
|
|
694
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
695
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
696
|
-
readonly testsCompleted: S.optional<S.Int>;
|
|
697
|
-
readonly duration: S.optional<S.Finite>;
|
|
698
|
-
}>>;
|
|
699
|
-
}>>;
|
|
700
|
-
readonly thresholds: S.decodeTo<S.declare<{
|
|
701
|
-
readonly high: number;
|
|
702
|
-
readonly low: number;
|
|
703
|
-
}, {
|
|
704
|
-
readonly high: number;
|
|
705
|
-
readonly low: number;
|
|
706
|
-
}>, S.Struct<{
|
|
707
|
-
readonly high: S.Finite;
|
|
708
|
-
readonly low: S.Finite;
|
|
709
|
-
}>, never, never>;
|
|
710
|
-
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
711
|
-
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
712
|
-
readonly source: S.optional<S.String>;
|
|
713
|
-
readonly tests: S.$Array<S.Struct<{
|
|
714
|
-
readonly id: S.String;
|
|
715
|
-
readonly name: S.String;
|
|
716
|
-
readonly location: S.optional<S.Struct<{
|
|
717
|
-
readonly start: S.Struct<{
|
|
718
|
-
readonly line: S.Finite;
|
|
719
|
-
readonly column: S.Finite;
|
|
720
|
-
}>;
|
|
721
|
-
readonly end: S.optional<S.Struct<{
|
|
722
|
-
readonly line: S.Finite;
|
|
723
|
-
readonly column: S.Finite;
|
|
724
|
-
}>>;
|
|
725
|
-
}>>;
|
|
726
|
-
}>>;
|
|
727
|
-
}>>>;
|
|
728
|
-
readonly projectRoot: S.optional<S.String>;
|
|
729
|
-
readonly framework: S.optional<S.Struct<{
|
|
730
|
-
readonly name: S.String;
|
|
731
|
-
readonly version: S.optional<S.String>;
|
|
732
|
-
readonly branding: S.optional<S.Struct<{
|
|
733
|
-
readonly homepageUrl: S.String;
|
|
734
|
-
readonly imageUrl: S.optional<S.String>;
|
|
735
|
-
}>>;
|
|
736
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
737
|
-
}>>;
|
|
738
|
-
}>;
|
|
739
|
-
readonly metrics: S.Codec<MetricsResult, MetricsResultEncoded, never, never>;
|
|
740
|
-
}>, {}>;
|
|
741
|
-
declare type MutationTestResult = typeof MutationTestResultSchema.Type;
|
|
742
|
-
declare const MutationTestResultSchema: S.Struct<{
|
|
743
|
-
readonly schemaVersion: S.String;
|
|
744
|
-
readonly files: S.$Record<S.String, S.Struct<{
|
|
745
|
-
readonly language: S.String;
|
|
746
|
-
readonly source: S.String;
|
|
747
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
748
|
-
readonly id: S.String;
|
|
749
|
-
readonly mutatorName: S.String;
|
|
750
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
751
|
-
readonly location: S.Struct<{
|
|
752
|
-
readonly start: S.Struct<{
|
|
753
|
-
readonly line: S.Finite;
|
|
754
|
-
readonly column: S.Finite;
|
|
755
|
-
}>;
|
|
756
|
-
readonly end: S.Struct<{
|
|
757
|
-
readonly line: S.Finite;
|
|
758
|
-
readonly column: S.Finite;
|
|
759
|
-
}>;
|
|
760
|
-
}>;
|
|
761
|
-
readonly replacement: S.optional<S.String>;
|
|
762
|
-
readonly description: S.optional<S.String>;
|
|
763
|
-
readonly statusReason: S.optional<S.String>;
|
|
764
|
-
readonly static: S.optional<S.Boolean>;
|
|
765
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
766
|
-
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
767
|
-
readonly testsCompleted: S.optional<S.Int>;
|
|
768
|
-
readonly duration: S.optional<S.Finite>;
|
|
769
|
-
}>>;
|
|
770
|
-
}>>;
|
|
771
|
-
readonly thresholds: S.decodeTo<S.declare<{
|
|
772
|
-
readonly high: number;
|
|
773
|
-
readonly low: number;
|
|
774
|
-
}, {
|
|
775
|
-
readonly high: number;
|
|
776
|
-
readonly low: number;
|
|
777
|
-
}>, S.Struct<{
|
|
778
|
-
readonly high: S.Finite;
|
|
779
|
-
readonly low: S.Finite;
|
|
780
|
-
}>, never, never>;
|
|
781
|
-
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
782
|
-
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
783
|
-
readonly source: S.optional<S.String>;
|
|
784
|
-
readonly tests: S.$Array<S.Struct<{
|
|
785
|
-
readonly id: S.String;
|
|
786
|
-
readonly name: S.String;
|
|
787
|
-
readonly location: S.optional<S.Struct<{
|
|
788
|
-
readonly start: S.Struct<{
|
|
789
|
-
readonly line: S.Finite;
|
|
790
|
-
readonly column: S.Finite;
|
|
791
|
-
}>;
|
|
792
|
-
readonly end: S.optional<S.Struct<{
|
|
793
|
-
readonly line: S.Finite;
|
|
794
|
-
readonly column: S.Finite;
|
|
795
|
-
}>>;
|
|
796
|
-
}>>;
|
|
797
|
-
}>>;
|
|
798
|
-
}>>>;
|
|
799
|
-
readonly projectRoot: S.optional<S.String>;
|
|
800
|
-
readonly framework: S.optional<S.Struct<{
|
|
801
|
-
readonly name: S.String;
|
|
802
|
-
readonly version: S.optional<S.String>;
|
|
803
|
-
readonly branding: S.optional<S.Struct<{
|
|
804
|
-
readonly homepageUrl: S.String;
|
|
805
|
-
readonly imageUrl: S.optional<S.String>;
|
|
806
|
-
}>>;
|
|
807
|
-
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
808
|
-
}>>;
|
|
809
|
-
}>;
|
|
810
|
-
declare const NonNegativeFinite: S.Finite;
|
|
811
|
-
declare const NonNegativeInt: S.Int;
|
|
812
|
-
declare type OnlyObject<T> = Exclude<T, Primitive>;
|
|
813
|
-
declare const PackageManager: S.Literals<readonly ["npm", "yarn", "pnpm"]>;
|
|
814
|
-
declare type PackageManager = typeof PackageManager.Type;
|
|
815
|
-
declare const parseTraceparent: (value: string) => Option.Option<TraceContextParts>;
|
|
816
|
-
/**
|
|
817
|
-
* The deep-partial input type: when configuring Stryker, every option is
|
|
818
|
-
* optional, including deep properties like `dashboard.project`.
|
|
819
|
-
*/
|
|
820
|
-
declare type PartialStrykerOptions = DeepOptional<StrykerOptions>;
|
|
821
|
-
declare interface PassedCheckResult {
|
|
822
|
-
readonly status: 'passed';
|
|
823
|
-
}
|
|
824
|
-
declare const Percentage: S.Finite;
|
|
825
|
-
declare const PluginFileUrl: S.String;
|
|
826
|
-
declare type Primitive = boolean | number | string | null | undefined;
|
|
827
|
-
declare class PropagatedTrace extends PropagatedTrace_base {}
|
|
828
|
-
declare const PropagatedTrace_base: Context.ServiceClass<PropagatedTrace, "@systemfsoftware/stryker-js-plugin-interface/TraceContextRpc/PropagatedTrace", Option.Option<TraceContextParts>>;
|
|
829
|
-
/**
|
|
830
|
-
* Given a base type, allows type safe access to the name of a property.
|
|
831
|
-
* @param prop - The property name
|
|
832
|
-
*/
|
|
833
|
-
declare function propertyPath<T>(): PropertyPathOverloads<T>;
|
|
834
|
-
declare interface PropertyPathOverloads<T> {
|
|
835
|
-
(key: KnownKeys<T>): string;
|
|
836
|
-
<TProp1 extends KnownKeys<T>>(key: TProp1, key2: KnownKeys<OnlyObject<T[TProp1]>>): string;
|
|
837
|
-
<TProp1 extends KnownKeys<T>, TProp2 extends KnownKeys<OnlyObject<T[TProp1]>>>(key: TProp1, key2: TProp2, key3: KnownKeys<OnlyObject<OnlyObject<T[TProp1]>[TProp2]>>): string;
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* The four option defaults a human reads about in help text.
|
|
841
|
-
*
|
|
842
|
-
* `Schema.schema.ts` declares every default, and a CLI that wants to
|
|
843
|
-
* name one in a `--help` description must read it from here rather than type
|
|
844
|
-
* the literal a second time: a restated default drifts the moment the schema
|
|
845
|
-
* moves, and no gate compares a help string against a schema annotation.
|
|
846
|
-
*
|
|
847
|
-
* Only these four are here because only these four are rendered. A default
|
|
848
|
-
* nobody prints has one declaration site already, which is the schema.
|
|
849
|
-
*/
|
|
850
|
-
declare const RENDERED_OPTION_DEFAULTS: {
|
|
851
|
-
readonly coverageAnalysis: 'perTest';
|
|
852
|
-
readonly fileLogLevel: 'off';
|
|
853
|
-
readonly logLevel: 'info';
|
|
854
|
-
readonly tempDirName: '.stryker-tmp';
|
|
855
|
-
};
|
|
856
|
-
declare const ReporterAck: S.Void;
|
|
857
|
-
declare const ReporterDrained: S.Void;
|
|
858
|
-
declare type ReporterEvent = DryRunCompleted | MutationTestingPlanReady | MutantTested | MutationTestReportReady;
|
|
859
|
-
declare const ReporterEventBatch: S.$Array<S.Union<readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>>;
|
|
860
|
-
declare type ReporterEventBatch = typeof ReporterEventBatch.Type;
|
|
861
|
-
declare const ReporterEventKind: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
862
|
-
declare type ReporterEventKind = typeof ReporterEventKind.Type;
|
|
863
|
-
declare const ReporterEventSchema: StandardSchemaV1<typeof ReporterEventUnion['Encoded'], ReporterEvent>;
|
|
864
|
-
declare const ReporterEventUnion: S.Union<readonly [typeof DryRunCompleted, typeof MutationTestingPlanReady, typeof MutantTested, typeof MutationTestReportReady]>;
|
|
865
|
-
declare type ReporterFactory = (options: StrykerOptions, init: ReporterInit) => (events: AsyncIterable<ReporterEvent>) => Effect$1.Effect<void, ReporterFailed>;
|
|
866
|
-
declare class ReporterFailed extends ReporterFailed_base {}
|
|
867
|
-
declare const ReporterFailed_base: S.Class<ReporterFailed, S.TaggedStruct<"ReporterFailed", {
|
|
868
|
-
readonly cause: S.String;
|
|
869
|
-
readonly event: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
|
|
870
|
-
readonly reporterName: S.String;
|
|
871
|
-
}>, YieldableError>;
|
|
872
|
-
declare interface ReporterInit {
|
|
873
|
-
readonly traceparent?: string | undefined;
|
|
874
|
-
readonly tracestate?: string | undefined;
|
|
875
|
-
}
|
|
876
|
-
declare const ReporterInitOptions: S.Struct<{
|
|
877
|
-
readonly traceparent: S.optionalKey<S.String>;
|
|
878
|
-
readonly tracestate: S.optionalKey<S.String>;
|
|
879
|
-
}>;
|
|
880
|
-
declare type ReporterInitOptions = typeof ReporterInitOptions.Type;
|
|
881
|
-
declare type ReporterPlanDescriptor = typeof ReporterPlanDescriptorSchema.Type;
|
|
882
|
-
declare const ReporterPlanDescriptorSchema: S.Struct<{
|
|
883
|
-
readonly mutantId: S.String;
|
|
884
|
-
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
885
|
-
readonly netTime: S.Finite;
|
|
886
|
-
readonly reloadEnvironment: S.Boolean;
|
|
887
|
-
}>;
|
|
888
|
-
declare const ReporterPlanKind: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
889
|
-
declare const ReporterRpcs: RpcGroup.RpcGroup<TracedRpc<'init', typeof ReporterInitOptions, typeof ReporterAck, typeof ReporterFailed> | TracedRpc<'onEventBatch', typeof ReporterEventBatch, typeof ReporterAck, typeof ReporterFailed> | TracedRpc<'flush', Schema.Void, typeof ReporterDrained, typeof ReporterFailed>>;
|
|
890
|
-
declare const ReportType: S.Literals<readonly ["full", "mutationScore"]>;
|
|
891
|
-
declare type ReportType = typeof ReportType.Type;
|
|
892
|
-
declare type RunTiming = typeof RunTimingSchema.Type;
|
|
893
|
-
declare const RunTimingSchema: S.Struct<{
|
|
894
|
-
readonly net: S.Finite;
|
|
895
|
-
readonly overhead: S.Finite;
|
|
896
|
-
}>;
|
|
897
|
-
declare interface SkippedTestResult extends BaseTestResult {
|
|
898
|
-
readonly status: 'skipped';
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* The JSON Schema document derived from `StrykerOptionsSchema`, self-contained.
|
|
902
|
-
*
|
|
903
|
-
* It lives beside the schema module rather than inside it because it is a *use*
|
|
904
|
-
* of that schema, not a declaration of one: `S.toJsonSchemaDocument` consumes a
|
|
905
|
-
* schema and returns a plain document. Keeping uses out of a `*.schema.ts` is
|
|
906
|
-
* what lets a tool read every exported schema in a package and trust that each
|
|
907
|
-
* one is a schema - the generated law suite does exactly that, and a document
|
|
908
|
-
* handed to `toEncoded` takes the whole suite down with it.
|
|
909
|
-
*/
|
|
910
|
-
declare const strykerCoreSchema: JsonSchema;
|
|
911
|
-
/** The decoded type: every defaulted option is present. */
|
|
912
|
-
declare type StrykerOptions = S.Schema.Type<typeof StrykerOptionsSchema>;
|
|
913
|
-
declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
914
|
-
readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
915
|
-
readonly buildCommand: S.optional<S.String>;
|
|
916
|
-
readonly checkers: S.withDecodingDefaultKey<S.$Array<S.Struct<{
|
|
917
|
-
readonly plugin: S.String;
|
|
918
|
-
readonly nodeArgs: S.optional<S.$Array<S.String>>;
|
|
919
|
-
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
920
|
-
}>>, never>;
|
|
921
|
-
readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
922
|
-
readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
|
|
923
|
-
readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
924
|
-
readonly command: S.withDecodingDefaultKey<S.String, never>;
|
|
925
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
926
|
-
readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
|
|
927
|
-
readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
|
|
928
|
-
readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
929
|
-
readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
930
|
-
readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
931
|
-
readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
|
|
932
|
-
readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
933
|
-
readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
934
|
-
readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
935
|
-
readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
936
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
|
|
937
|
-
readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
938
|
-
readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
939
|
-
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
940
|
-
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
941
|
-
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
942
|
-
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
943
|
-
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
944
|
-
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
945
|
-
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
946
|
-
readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
947
|
-
readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
|
|
948
|
-
readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
|
|
949
|
-
readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
950
|
-
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
951
|
-
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
952
|
-
readonly optInMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
953
|
-
}>, never>;
|
|
954
|
-
readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
955
|
-
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
956
|
-
readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
957
|
-
readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
958
|
-
readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
959
|
-
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
960
|
-
}>, never>;
|
|
961
|
-
readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
|
|
962
|
-
readonly fileName: S.withDecodingDefaultKey<S.String, never>;
|
|
963
|
-
}>, never>;
|
|
964
|
-
readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
|
|
965
|
-
readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
966
|
-
readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
|
|
967
|
-
readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
|
|
968
|
-
readonly testRunner: S.withDecodingDefaultKey<S.Union<readonly [S.String, S.Struct<{
|
|
969
|
-
readonly plugin: S.String;
|
|
970
|
-
readonly nodeArgs: S.optional<S.$Array<S.String>>;
|
|
971
|
-
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
972
|
-
}>]>, never>;
|
|
973
|
-
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
974
|
-
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
975
|
-
readonly high: number;
|
|
976
|
-
readonly low: number;
|
|
977
|
-
readonly break: number | null;
|
|
978
|
-
}, {
|
|
979
|
-
readonly high: number;
|
|
980
|
-
readonly low: number;
|
|
981
|
-
readonly break: number | null;
|
|
982
|
-
}>, S.Struct<{
|
|
983
|
-
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
984
|
-
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
985
|
-
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
986
|
-
}>, never, never>, never>;
|
|
987
|
-
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
988
|
-
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
989
|
-
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
990
|
-
readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
|
|
991
|
-
readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
|
|
992
|
-
readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
993
|
-
readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
994
|
-
readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
995
|
-
readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
996
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
|
|
997
|
-
readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
998
|
-
readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
999
|
-
readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1000
|
-
readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1001
|
-
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
1002
|
-
/**
|
|
1003
|
-
* Creates a URL to the page where a consumer can report a bug against this
|
|
1004
|
-
* project.
|
|
1005
|
-
*
|
|
1006
|
-
* The tracker is ours. The ported original addressed the upstream StrykerJS
|
|
1007
|
-
* repository, along with its label and issue-template parameters, so every bug
|
|
1008
|
-
* a consumer filed from a Stryker run arrived at a project that does not own
|
|
1009
|
-
* this code (`REPO-O1`) and prefilled a template that does not exist here.
|
|
1010
|
-
*
|
|
1011
|
-
* @param titleSuggestion - The title to be prefilled in.
|
|
1012
|
-
*/
|
|
1013
|
-
declare function strykerReportBugUrl(titleSuggestion: string): string;
|
|
1014
|
-
declare interface SuccessTestResult extends BaseTestResult {
|
|
1015
|
-
readonly status: 'success';
|
|
1016
|
-
}
|
|
1017
|
-
declare interface SurvivedMutantRunResult {
|
|
1018
|
-
readonly status: 'survived';
|
|
1019
|
-
readonly nrOfTests: number;
|
|
1020
|
-
}
|
|
1021
|
-
declare type TestDefinition = typeof TestDefinitionSchema.Type;
|
|
1022
|
-
declare const TestDefinitionSchema: S.Struct<{
|
|
1023
|
-
readonly id: S.String;
|
|
1024
|
-
readonly name: S.String;
|
|
1025
|
-
readonly location: S.optional<S.Struct<{
|
|
1026
|
-
readonly start: S.Struct<{
|
|
1027
|
-
readonly line: S.Finite;
|
|
1028
|
-
readonly column: S.Finite;
|
|
1029
|
-
}>;
|
|
1030
|
-
readonly end: S.optional<S.Struct<{
|
|
1031
|
-
readonly line: S.Finite;
|
|
1032
|
-
readonly column: S.Finite;
|
|
1033
|
-
}>>;
|
|
1034
|
-
}>>;
|
|
1035
|
-
}>;
|
|
1036
|
-
declare type TestFile = typeof TestFileSchema.Type;
|
|
1037
|
-
declare type TestFileDefinitionDictionary = typeof TestFileDefinitionDictionarySchema.Type;
|
|
1038
|
-
declare const TestFileDefinitionDictionarySchema: S.$Record<S.String, S.Struct<{
|
|
1039
|
-
readonly source: S.optional<S.String>;
|
|
1040
|
-
readonly tests: S.$Array<S.Struct<{
|
|
1041
|
-
readonly id: S.String;
|
|
1042
|
-
readonly name: S.String;
|
|
1043
|
-
readonly location: S.optional<S.Struct<{
|
|
1044
|
-
readonly start: S.Struct<{
|
|
1045
|
-
readonly line: S.Finite;
|
|
1046
|
-
readonly column: S.Finite;
|
|
1047
|
-
}>;
|
|
1048
|
-
readonly end: S.optional<S.Struct<{
|
|
1049
|
-
readonly line: S.Finite;
|
|
1050
|
-
readonly column: S.Finite;
|
|
1051
|
-
}>>;
|
|
1052
|
-
}>>;
|
|
1053
|
-
}>>;
|
|
1054
|
-
}>>;
|
|
1055
|
-
declare const TestFileSchema: S.Struct<{
|
|
1056
|
-
readonly source: S.optional<S.String>;
|
|
1057
|
-
readonly tests: S.$Array<S.Struct<{
|
|
1058
|
-
readonly id: S.String;
|
|
1059
|
-
readonly name: S.String;
|
|
1060
|
-
readonly location: S.optional<S.Struct<{
|
|
1061
|
-
readonly start: S.Struct<{
|
|
1062
|
-
readonly line: S.Finite;
|
|
1063
|
-
readonly column: S.Finite;
|
|
1064
|
-
}>;
|
|
1065
|
-
readonly end: S.optional<S.Struct<{
|
|
1066
|
-
readonly line: S.Finite;
|
|
1067
|
-
readonly column: S.Finite;
|
|
1068
|
-
}>>;
|
|
1069
|
-
}>>;
|
|
1070
|
-
}>>;
|
|
1071
|
-
}>;
|
|
1072
|
-
declare function testFilesProvided(options: {
|
|
1073
|
-
readonly testFiles?: readonly string[];
|
|
1074
|
-
}): boolean;
|
|
1075
|
-
declare type TestResult = FailedTestResult | SkippedTestResult | SuccessTestResult;
|
|
1076
|
-
declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
1077
|
-
readonly id: S.String;
|
|
1078
|
-
readonly name: S.String;
|
|
1079
|
-
readonly timeSpentMs: S.Finite;
|
|
1080
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
1081
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
1082
|
-
readonly line: S.Finite;
|
|
1083
|
-
readonly column: S.Finite;
|
|
1084
|
-
}>>;
|
|
1085
|
-
readonly status: S.Literal<"failed">;
|
|
1086
|
-
readonly failureMessage: S.String;
|
|
1087
|
-
}>, S.Struct<{
|
|
1088
|
-
readonly id: S.String;
|
|
1089
|
-
readonly name: S.String;
|
|
1090
|
-
readonly timeSpentMs: S.Finite;
|
|
1091
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
1092
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
1093
|
-
readonly line: S.Finite;
|
|
1094
|
-
readonly column: S.Finite;
|
|
1095
|
-
}>>;
|
|
1096
|
-
readonly status: S.Literal<"skipped">;
|
|
1097
|
-
}>, S.Struct<{
|
|
1098
|
-
readonly id: S.String;
|
|
1099
|
-
readonly name: S.String;
|
|
1100
|
-
readonly timeSpentMs: S.Finite;
|
|
1101
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
1102
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
1103
|
-
readonly line: S.Finite;
|
|
1104
|
-
readonly column: S.Finite;
|
|
1105
|
-
}>>;
|
|
1106
|
-
readonly status: S.Literal<"success">;
|
|
1107
|
-
}>]>;
|
|
1108
|
-
declare class TestRunner extends TestRunner_base {}
|
|
1109
|
-
declare const TestRunner_base: Context.ServiceClass<TestRunner, "@systemfsoftware/stryker-js-plugin-interface/TestRunner", TestRunnerService>;
|
|
1110
|
-
declare interface TestRunnerCapabilities {
|
|
1111
|
-
readonly reloadEnvironment: boolean;
|
|
1112
|
-
}
|
|
1113
|
-
declare const TestRunnerCapabilitiesSchema: S.Struct<{
|
|
1114
|
-
readonly reloadEnvironment: S.Boolean;
|
|
1115
|
-
}>;
|
|
1116
|
-
declare type TestRunnerConfig = typeof TestRunnerConfigSchema.Type;
|
|
1117
|
-
declare const TestRunnerConfigSchema: S.Union<readonly [S.String, S.Struct<{
|
|
1118
|
-
readonly plugin: S.String;
|
|
1119
|
-
readonly nodeArgs: S.optional<S.$Array<S.String>>;
|
|
1120
|
-
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1121
|
-
}>]>;
|
|
1122
|
-
declare type TestRunnerCustomConfig = typeof TestRunnerCustomConfigSchema.Type;
|
|
1123
|
-
declare const TestRunnerCustomConfigSchema: S.Struct<{
|
|
1124
|
-
readonly plugin: S.String;
|
|
1125
|
-
readonly nodeArgs: S.optional<S.$Array<S.String>>;
|
|
1126
|
-
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1127
|
-
}>;
|
|
1128
|
-
declare const TestRunnerDryRunRequest: S.Struct<{
|
|
1129
|
-
readonly options: S.Struct<{
|
|
1130
|
-
readonly timeout: S.Finite;
|
|
1131
|
-
readonly disableBail: S.Boolean;
|
|
1132
|
-
readonly coverageAnalysis: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
1133
|
-
readonly files: S.optionalKey<S.$Array<S.String>>;
|
|
1134
|
-
readonly testFiles: S.optionalKey<S.$Array<S.String>>;
|
|
1135
|
-
}>;
|
|
1136
|
-
}>;
|
|
1137
|
-
declare type TestRunnerDryRunRequest = typeof TestRunnerDryRunRequest.Type;
|
|
1138
|
-
declare class TestRunnerFailed extends TestRunnerFailed_base {}
|
|
1139
|
-
declare const TestRunnerFailed_base: S.Class<TestRunnerFailed, S.TaggedStruct<"TestRunnerFailed", {
|
|
1140
|
-
readonly cause: S.String;
|
|
1141
|
-
readonly phase: S.Literals<readonly ["capabilities", "dispose", "dryRun", "init", "mutantRun"]>;
|
|
1142
|
-
readonly runnerName: S.String;
|
|
1143
|
-
}>, YieldableError>;
|
|
1144
|
-
declare const TestRunnerMutantRunRequest: S.Struct<{
|
|
1145
|
-
readonly options: S.Struct<{
|
|
1146
|
-
readonly timeout: S.Finite;
|
|
1147
|
-
readonly disableBail: S.Boolean;
|
|
1148
|
-
readonly activeMutant: Mutant;
|
|
1149
|
-
readonly sandboxFileName: S.String;
|
|
1150
|
-
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
1151
|
-
readonly reloadEnvironment: S.Boolean;
|
|
1152
|
-
readonly testFilter: S.optionalKey<S.$Array<S.String>>;
|
|
1153
|
-
readonly hitLimit: S.optionalKey<S.Finite>;
|
|
1154
|
-
}>;
|
|
1155
|
-
}>;
|
|
1156
|
-
declare type TestRunnerMutantRunRequest = typeof TestRunnerMutantRunRequest.Type;
|
|
1157
|
-
declare const TestRunnerRpcs: RpcGroup.RpcGroup<TracedRpc<'capabilities', Schema.Void, typeof TestRunnerCapabilitiesSchema, typeof TestRunnerFailed> | TracedRpc<'dryRun', typeof TestRunnerDryRunRequest, typeof DryRunResultSchema, typeof TestRunnerFailed> | TracedRpc<'mutantRun', typeof TestRunnerMutantRunRequest, typeof MutantRunResultSchema, typeof TestRunnerFailed>>;
|
|
1158
|
-
declare interface TestRunnerService {
|
|
1159
|
-
readonly capabilities: Effect$1.Effect<TestRunnerCapabilities, TestRunnerFailed>;
|
|
1160
|
-
readonly init: Effect$1.Effect<void, TestRunnerFailed>;
|
|
1161
|
-
readonly dryRun: (options: DryRunOptions) => Effect$1.Effect<DryRunResult, TestRunnerFailed>;
|
|
1162
|
-
readonly mutantRun: (options: MutantRunOptions) => Effect$1.Effect<MutantRunResult, TestRunnerFailed>;
|
|
1163
|
-
readonly dispose: Effect$1.Effect<void, TestRunnerFailed>;
|
|
1164
|
-
}
|
|
1165
|
-
declare const TestStatus: S.Literals<readonly ["success", "failed", "skipped"]>;
|
|
1166
|
-
declare type TestStatus = typeof TestStatus.Type;
|
|
1167
|
-
declare type Thresholds = typeof ThresholdsSchema.Type;
|
|
1168
|
-
declare const ThresholdsSchema: S.decodeTo<S.declare<{
|
|
1169
|
-
readonly high: number;
|
|
1170
|
-
readonly low: number;
|
|
1171
|
-
}, {
|
|
1172
|
-
readonly high: number;
|
|
1173
|
-
readonly low: number;
|
|
1174
|
-
}>, S.Struct<{
|
|
1175
|
-
readonly high: S.Finite;
|
|
1176
|
-
readonly low: S.Finite;
|
|
1177
|
-
}>, never, never>;
|
|
1178
|
-
declare interface TimeoutDryRunResult {
|
|
1179
|
-
readonly status: 'timeout';
|
|
1180
|
-
readonly reason?: string;
|
|
1181
|
-
}
|
|
1182
|
-
declare interface TimeoutMutantRunResult {
|
|
1183
|
-
readonly status: 'timeout';
|
|
1184
|
-
readonly reason?: string;
|
|
1185
|
-
}
|
|
1186
|
-
declare function toMutantRunResult(dryRunResult: DryRunResult, reportAllKillers: boolean): MutantRunResult;
|
|
1187
|
-
declare class TraceContextMiddleware extends TraceContextMiddleware_base {}
|
|
1188
|
-
declare const TraceContextMiddleware_base: RpcMiddleware.ServiceClass<TraceContextMiddleware, "@systemfsoftware/stryker-js-plugin-interface/TraceContextMiddleware", typeof PropagatedTrace, Schema.Never, never, never, true>;
|
|
1189
|
-
declare interface TraceContextParts {
|
|
1190
|
-
readonly version: string;
|
|
1191
|
-
readonly traceId: string;
|
|
1192
|
-
readonly spanId: string;
|
|
1193
|
-
readonly traceFlags: number;
|
|
1194
|
-
readonly traceState?: string | undefined;
|
|
1195
|
-
}
|
|
1196
|
-
declare const TraceContextReference: Context.Reference<Option.Option<TraceContextParts>>;
|
|
1197
|
-
declare type TracedRpc<Tag extends string, Payload extends Schema.Top = Schema.Void, Success extends Schema.Top = Schema.Void, Error extends Schema.Top = Schema.Never> = Rpc.Rpc<Tag, Payload, Success, Error, typeof TraceContextMiddleware, RpcMiddleware.ApplyServices<typeof TraceContextMiddleware['Identifier'], never>>;
|
|
1198
|
-
declare const Traceparent: S.String;
|
|
1199
|
-
declare type Traceparent = typeof Traceparent.Type;
|
|
1200
|
-
declare const TRACEPARENT_HEADER = "traceparent";
|
|
1201
|
-
declare const TRACESTATE_HEADER = "tracestate";
|
|
1202
|
-
declare const UndetectedStatus: S.Union<readonly [S.Literal<"Survived">, S.Literal<"NoCoverage">]>;
|
|
1203
|
-
declare const UntestedStatus: S.Union<readonly [S.Literal<"Ignored">, S.Literal<"Pending">]>;
|
|
1204
|
-
declare const WALL_CLOCK_TIMEOUT_REASON = "wall-clock-timeout";
|
|
1205
|
-
declare const wallClockTimeoutStopsRun: (status: string, reason: string | undefined) => boolean;
|
|
1206
|
-
declare const WorkerEntryUrl: S.String;
|
|
1207
|
-
declare type WorkerEntryUrl = typeof WorkerEntryUrl.Type;
|
|
1208
|
-
declare const WorkerPluginKind: S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>;
|
|
1209
|
-
declare type WorkerPluginKind = typeof WorkerPluginKind.Type;
|
|
1210
|
-
declare type WorkerPluginSpawn = typeof WorkerPluginSpawnSchema.Type;
|
|
1211
|
-
declare const WorkerPluginSpawnSchema: S.Struct<{
|
|
1212
|
-
readonly kind: S.Literals<readonly ["TestRunner", "Checker", "Reporter"]>;
|
|
1213
|
-
readonly entrypoint: S.String;
|
|
1214
|
-
}>;
|
|
1215
|
-
//#endregion
|
|
1216
|
-
export { TestRunnerConfigSchema as $, MutationTestReportReady as A, ReporterFactory as B, Metrics as C, RunMutantResult as Ct, MutantResultSchema as D, MutantResult as E, index_d_exports$1 as Et, PassedCheckResult as F, SkippedTestResult as G, ReporterInit as H, ReporterAck as I, SuccessTestResult as J, StrykerOptions as K, ReporterDrained as L, MutationTestResultSchema as M, MutationTestingPlanReady as N, MutantRunResult as O, PartialStrykerOptions as P, TestRunnerConfig as Q, ReporterEvent as R, KilledMutantRunResult as S, PositionSchema as St, MetricsSchema as T, RunPlan as Tt, ReporterInitOptions as U, ReporterFailed as V, ReporterRpcs as W, TestResult as X, SurvivedMutantRunResult as Y, TestRunnerCapabilities as Z, ExitClass as _, MutantStatus as _t, CheckerGroupResult as a, WorkerPluginKind as at, FileResult as b, MutationRange as bt, CheckerRpcs as c, FileDescription as ct, DeepOptional as d, LocationSchema as dt, TestRunnerFailed as et, DryRunCompleted as f, Mutant as ft, ErrorMutantRunResult as g, MutantRunOptions as gt, ErrorDryRunResult as h, MutantCoverage as ht, CheckerFailed as i, TracedRpc as it, MutationTestResult as j, MutantTested as k, CompleteDryRunResult as l, FileDescriptions as lt, DryRunResult as m, MutantActivationSchema as mt, CheckResult as n, TimeoutMutantRunResult as nt, CheckerMutantWire as o, index_d_exports as ot, DryRunOptions as p, MutantActivation as pt, StrykerOptionsSchema as q, CheckerCheckResult as r, TraceContextMiddleware as rt, CheckerRequest as s, CoverageData as st, BaseTestResult as t, TimeoutDryRunResult as tt, CoverageAnalysis as u, Location as ut, FailedCheckResult as v, MutantStatusSchema as vt, MetricsResult as w, RunOptions as wt, FileResultSchema as x, Position as xt, FailedTestResult as y, MutateDescription as yt, ReporterEventBatch as z };
|