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