@systemfsoftware/stryker-js 3.0.2 → 4.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 +28 -0
- package/README.md +10 -16
- package/dist/index.d.mts +1603 -8
- package/dist/index.mjs +1034 -9
- package/package.json +11 -8
- package/dist/Checker-A8o5B3Ub.d.mts +0 -40
- package/dist/Checker-Bq8NXD8d.mjs +0 -25
- package/dist/Checker.d.mts +0 -2
- package/dist/Checker.mjs +0 -2
- package/dist/Evaluator-CnAN8-pZ.d.mts +0 -19
- package/dist/Evaluator.d.mts +0 -3
- package/dist/Evaluator.mjs +0 -9
- package/dist/ExitClass.d.mts +0 -9
- package/dist/ExitClass.mjs +0 -59
- package/dist/ExitClass.schema-BmOIK5zT.d.mts +0 -18
- package/dist/Ignorer-BUY68FZQ.d.mts +0 -21
- package/dist/Ignorer.d.mts +0 -2
- package/dist/Ignorer.mjs +0 -7
- package/dist/Metrics.d.mts +0 -7
- package/dist/Metrics.mjs +0 -79
- package/dist/Metrics.schema-BaVd6rXs.d.mts +0 -50
- package/dist/Metrics.schema-DZdoc46X.mjs +0 -27
- package/dist/Module-DHKEMAFI.d.mts +0 -31
- package/dist/Module.d.mts +0 -2
- package/dist/Module.mjs +0 -16
- package/dist/Mutant-Ci25PsWA.d.mts +0 -351
- package/dist/Mutant.d.mts +0 -3
- package/dist/Mutant.mjs +0 -90
- package/dist/Mutant.schema-H3r0ho_R.mjs +0 -34
- package/dist/Plugin-BtItMchw.d.mts +0 -153
- package/dist/Plugin-DXFdJP1l.mjs +0 -105
- package/dist/Plugin.d.mts +0 -2
- package/dist/Plugin.mjs +0 -2
- package/dist/Report.d.mts +0 -2
- package/dist/Report.mjs +0 -98
- package/dist/Report.schema-_buHXdnZ.d.mts +0 -251
- package/dist/Reporter-BWTwlSJf.mjs +0 -25
- package/dist/Reporter-C7ysGxqX.d.mts +0 -16
- package/dist/Reporter.d.mts +0 -4
- package/dist/Reporter.mjs +0 -3
- package/dist/ReporterEvent.d.mts +0 -2
- package/dist/ReporterEvent.mjs +0 -57
- package/dist/ReporterEvent.schema-BhtyYCZo.d.mts +0 -189
- package/dist/Run-BUpNSmcM.d.mts +0 -172
- package/dist/Run.d.mts +0 -2
- package/dist/Run.mjs +0 -56
- package/dist/Run.schema-DZve3k2m.mjs +0 -138
- package/dist/Schema-4oCWQ0P0.d.mts +0 -158
- package/dist/Schema-CMKdWMUN.mjs +0 -244
- package/dist/Schema.d.mts +0 -2
- package/dist/Schema.mjs +0 -2
- package/dist/TestRunner.d.mts +0 -2
- package/dist/TestRunner.mjs +0 -57
- package/dist/TestRunner.schema-Dy0Wdro2.mjs +0 -119
- package/dist/output-file.d.mts +0 -8
- package/dist/output-file.mjs +0 -8
- package/dist/provided-options.d.mts +0 -16
- package/dist/provided-options.mjs +0 -1
- package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
import { C as Report_schema_d_exports } from "./Report.schema-_buHXdnZ.mjs";
|
|
2
|
-
import * as Context from "effect/Context";
|
|
3
|
-
import * as S from "effect/Schema";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
|
-
//#region src/Mutant.schema.d.ts
|
|
6
|
-
declare const PositionSchema: S.Struct<{
|
|
7
|
-
readonly line: S.Finite;
|
|
8
|
-
readonly column: S.Finite;
|
|
9
|
-
}>;
|
|
10
|
-
declare const LocationSchema: S.Struct<{
|
|
11
|
-
readonly start: S.Struct<{
|
|
12
|
-
readonly line: S.Finite;
|
|
13
|
-
readonly column: S.Finite;
|
|
14
|
-
}>;
|
|
15
|
-
readonly end: S.Struct<{
|
|
16
|
-
readonly line: S.Finite;
|
|
17
|
-
readonly column: S.Finite;
|
|
18
|
-
}>;
|
|
19
|
-
}>;
|
|
20
|
-
declare const Mutant_base: S.Class<Mutant, S.TaggedStruct<"Mutant", {
|
|
21
|
-
readonly id: S.NonEmptyString;
|
|
22
|
-
readonly fileName: S.NonEmptyString;
|
|
23
|
-
readonly mutatorName: S.NonEmptyString;
|
|
24
|
-
readonly replacement: S.String;
|
|
25
|
-
readonly location: S.Struct<{
|
|
26
|
-
readonly start: S.Struct<{
|
|
27
|
-
readonly line: S.Finite;
|
|
28
|
-
readonly column: S.Finite;
|
|
29
|
-
}>;
|
|
30
|
-
readonly end: S.Struct<{
|
|
31
|
-
readonly line: S.Finite;
|
|
32
|
-
readonly column: S.Finite;
|
|
33
|
-
}>;
|
|
34
|
-
}>;
|
|
35
|
-
readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "Timeout", "CompileError", "RuntimeError", "Ignored", "Pending"]>>;
|
|
36
|
-
readonly statusReason: S.optional<S.String>;
|
|
37
|
-
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
38
|
-
readonly static: S.optional<S.Boolean>;
|
|
39
|
-
readonly testsCompleted: S.optional<S.Finite>;
|
|
40
|
-
readonly description: S.optional<S.String>;
|
|
41
|
-
}>, {}>;
|
|
42
|
-
declare class Mutant extends Mutant_base {}
|
|
43
|
-
type Position$1 = S.Schema.Type<typeof PositionSchema>;
|
|
44
|
-
type Location = S.Schema.Type<typeof LocationSchema>;
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/TestRunner.schema.d.ts
|
|
47
|
-
declare const DryRunStatus: S.Literals<readonly ["complete", "error", "timeout"]>;
|
|
48
|
-
type DryRunStatus = typeof DryRunStatus.Type;
|
|
49
|
-
declare const TestStatus: S.Literals<readonly ["success", "failed", "skipped"]>;
|
|
50
|
-
type TestStatus = typeof TestStatus.Type;
|
|
51
|
-
declare const MutantRunStatus: S.Literals<readonly ["killed", "survived", "timeout", "error"]>;
|
|
52
|
-
type MutantRunStatus = typeof MutantRunStatus.Type;
|
|
53
|
-
declare const TestResultSchema: S.Union<readonly [S.Struct<{
|
|
54
|
-
readonly id: S.String;
|
|
55
|
-
readonly name: S.String;
|
|
56
|
-
readonly timeSpentMs: S.Finite;
|
|
57
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
58
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
59
|
-
readonly line: S.Finite;
|
|
60
|
-
readonly column: S.Finite;
|
|
61
|
-
}>>;
|
|
62
|
-
readonly status: S.Literal<"failed">;
|
|
63
|
-
readonly failureMessage: S.String;
|
|
64
|
-
}>, S.Struct<{
|
|
65
|
-
readonly id: S.String;
|
|
66
|
-
readonly name: S.String;
|
|
67
|
-
readonly timeSpentMs: S.Finite;
|
|
68
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
69
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
70
|
-
readonly line: S.Finite;
|
|
71
|
-
readonly column: S.Finite;
|
|
72
|
-
}>>;
|
|
73
|
-
readonly status: S.Literal<"skipped">;
|
|
74
|
-
}>, S.Struct<{
|
|
75
|
-
readonly id: S.String;
|
|
76
|
-
readonly name: S.String;
|
|
77
|
-
readonly timeSpentMs: S.Finite;
|
|
78
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
79
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
80
|
-
readonly line: S.Finite;
|
|
81
|
-
readonly column: S.Finite;
|
|
82
|
-
}>>;
|
|
83
|
-
readonly status: S.Literal<"success">;
|
|
84
|
-
}>]>;
|
|
85
|
-
declare const MutantCoverageSchema: S.Struct<{
|
|
86
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
87
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
88
|
-
}>;
|
|
89
|
-
declare const DryRunResultSchema: S.Union<readonly [S.Struct<{
|
|
90
|
-
readonly status: S.Literal<"complete">;
|
|
91
|
-
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
92
|
-
readonly id: S.String;
|
|
93
|
-
readonly name: S.String;
|
|
94
|
-
readonly timeSpentMs: S.Finite;
|
|
95
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
96
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
97
|
-
readonly line: S.Finite;
|
|
98
|
-
readonly column: S.Finite;
|
|
99
|
-
}>>;
|
|
100
|
-
readonly status: S.Literal<"failed">;
|
|
101
|
-
readonly failureMessage: S.String;
|
|
102
|
-
}>, S.Struct<{
|
|
103
|
-
readonly id: S.String;
|
|
104
|
-
readonly name: S.String;
|
|
105
|
-
readonly timeSpentMs: S.Finite;
|
|
106
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
107
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
108
|
-
readonly line: S.Finite;
|
|
109
|
-
readonly column: S.Finite;
|
|
110
|
-
}>>;
|
|
111
|
-
readonly status: S.Literal<"skipped">;
|
|
112
|
-
}>, S.Struct<{
|
|
113
|
-
readonly id: S.String;
|
|
114
|
-
readonly name: S.String;
|
|
115
|
-
readonly timeSpentMs: S.Finite;
|
|
116
|
-
readonly fileName: S.optionalKey<S.String>;
|
|
117
|
-
readonly startPosition: S.optionalKey<S.Struct<{
|
|
118
|
-
readonly line: S.Finite;
|
|
119
|
-
readonly column: S.Finite;
|
|
120
|
-
}>>;
|
|
121
|
-
readonly status: S.Literal<"success">;
|
|
122
|
-
}>]>>;
|
|
123
|
-
readonly mutantCoverage: S.optionalKey<S.Struct<{
|
|
124
|
-
readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Finite>>;
|
|
125
|
-
readonly static: S.$Record<S.String, S.Finite>;
|
|
126
|
-
}>>;
|
|
127
|
-
}>, S.Struct<{
|
|
128
|
-
readonly status: S.Literal<"timeout">;
|
|
129
|
-
readonly reason: S.optionalKey<S.String>;
|
|
130
|
-
}>, S.Struct<{
|
|
131
|
-
readonly status: S.Literal<"error">;
|
|
132
|
-
readonly errorMessage: S.String;
|
|
133
|
-
}>]>;
|
|
134
|
-
declare const MutantRunResultSchema: S.Union<readonly [S.Struct<{
|
|
135
|
-
readonly status: S.Literal<"killed">;
|
|
136
|
-
readonly killedBy: S.$Array<S.String>;
|
|
137
|
-
readonly failureMessage: S.String;
|
|
138
|
-
readonly nrOfTests: S.Finite;
|
|
139
|
-
}>, S.Struct<{
|
|
140
|
-
readonly status: S.Literal<"survived">;
|
|
141
|
-
readonly nrOfTests: S.Finite;
|
|
142
|
-
}>, S.Struct<{
|
|
143
|
-
readonly status: S.Literal<"timeout">;
|
|
144
|
-
readonly reason: S.optionalKey<S.String>;
|
|
145
|
-
}>, S.Struct<{
|
|
146
|
-
readonly status: S.Literal<"error">;
|
|
147
|
-
readonly errorMessage: S.String;
|
|
148
|
-
}>]>;
|
|
149
|
-
declare const CoverageAnalysisSchema: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
150
|
-
declare const DryRunOptionsSchema: S.Struct<{
|
|
151
|
-
readonly timeout: S.Finite;
|
|
152
|
-
readonly disableBail: S.Boolean;
|
|
153
|
-
readonly coverageAnalysis: S.Literals<readonly ["off", "all", "perTest"]>;
|
|
154
|
-
readonly files: S.optionalKey<S.$Array<S.String>>;
|
|
155
|
-
readonly testFiles: S.optionalKey<S.$Array<S.String>>;
|
|
156
|
-
}>;
|
|
157
|
-
declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
|
|
158
|
-
declare const MutantRunOptionsSchema: S.Struct<{
|
|
159
|
-
readonly timeout: S.Finite;
|
|
160
|
-
readonly disableBail: S.Boolean;
|
|
161
|
-
readonly activeMutant: typeof Mutant;
|
|
162
|
-
readonly sandboxFileName: S.String;
|
|
163
|
-
readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
|
|
164
|
-
readonly reloadEnvironment: S.Boolean;
|
|
165
|
-
readonly testFilter: S.optionalKey<S.$Array<S.String>>;
|
|
166
|
-
readonly hitLimit: S.optionalKey<S.Finite>;
|
|
167
|
-
}>;
|
|
168
|
-
declare const TestRunnerCapabilitiesSchema: S.Struct<{
|
|
169
|
-
readonly reloadEnvironment: S.Boolean;
|
|
170
|
-
}>;
|
|
171
|
-
declare const TestRunnerFailed_base: S.Class<TestRunnerFailed, S.TaggedStruct<"TestRunnerFailed", {
|
|
172
|
-
readonly cause: S.String;
|
|
173
|
-
readonly phase: S.Literals<readonly ["capabilities", "dispose", "dryRun", "init", "mutantRun"]>;
|
|
174
|
-
readonly runnerName: S.String;
|
|
175
|
-
}>, import("effect/Cause").YieldableError>;
|
|
176
|
-
declare class TestRunnerFailed extends TestRunnerFailed_base {}
|
|
177
|
-
declare namespace TestRunner_d_exports {
|
|
178
|
-
export { BaseTestResult, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisSchema, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, ErrorDryRunResult, ErrorMutantRunResult, FailedTestResult, KilledMutantRunResult, MutantActivation, MutantActivationSchema, MutantCoverage$1 as MutantCoverage, MutantCoverageSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, Position, RunOptions, SkippedTestResult, SuccessTestResult, SurvivedMutantRunResult, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerFailed, TestRunnerService, TestStatus, TimeoutDryRunResult, TimeoutMutantRunResult, testFilesProvided, toMutantRunResult };
|
|
179
|
-
}
|
|
180
|
-
interface Position {
|
|
181
|
-
readonly line: number;
|
|
182
|
-
readonly column: number;
|
|
183
|
-
}
|
|
184
|
-
interface BaseTestResult {
|
|
185
|
-
readonly id: string;
|
|
186
|
-
readonly name: string;
|
|
187
|
-
readonly timeSpentMs: number;
|
|
188
|
-
readonly fileName?: string;
|
|
189
|
-
readonly startPosition?: Position;
|
|
190
|
-
}
|
|
191
|
-
interface FailedTestResult extends BaseTestResult {
|
|
192
|
-
readonly status: 'failed';
|
|
193
|
-
readonly failureMessage: string;
|
|
194
|
-
}
|
|
195
|
-
interface SkippedTestResult extends BaseTestResult {
|
|
196
|
-
readonly status: 'skipped';
|
|
197
|
-
}
|
|
198
|
-
interface SuccessTestResult extends BaseTestResult {
|
|
199
|
-
readonly status: 'success';
|
|
200
|
-
}
|
|
201
|
-
type TestResult = FailedTestResult | SkippedTestResult | SuccessTestResult;
|
|
202
|
-
interface MutantCoverage$1 {
|
|
203
|
-
readonly perTest: Record<string, Record<string, number>>;
|
|
204
|
-
readonly static: Record<string, number>;
|
|
205
|
-
}
|
|
206
|
-
interface CompleteDryRunResult {
|
|
207
|
-
readonly tests: readonly TestResult[];
|
|
208
|
-
readonly mutantCoverage?: MutantCoverage$1;
|
|
209
|
-
readonly status: 'complete';
|
|
210
|
-
}
|
|
211
|
-
interface TimeoutDryRunResult {
|
|
212
|
-
readonly status: 'timeout';
|
|
213
|
-
readonly reason?: string;
|
|
214
|
-
}
|
|
215
|
-
interface ErrorDryRunResult {
|
|
216
|
-
readonly status: 'error';
|
|
217
|
-
readonly errorMessage: string;
|
|
218
|
-
}
|
|
219
|
-
type DryRunResult = CompleteDryRunResult | ErrorDryRunResult | TimeoutDryRunResult;
|
|
220
|
-
interface TimeoutMutantRunResult {
|
|
221
|
-
readonly status: 'timeout';
|
|
222
|
-
readonly reason?: string;
|
|
223
|
-
}
|
|
224
|
-
interface KilledMutantRunResult {
|
|
225
|
-
readonly status: 'killed';
|
|
226
|
-
readonly killedBy: readonly string[];
|
|
227
|
-
readonly failureMessage: string;
|
|
228
|
-
readonly nrOfTests: number;
|
|
229
|
-
}
|
|
230
|
-
interface SurvivedMutantRunResult {
|
|
231
|
-
readonly status: 'survived';
|
|
232
|
-
readonly nrOfTests: number;
|
|
233
|
-
}
|
|
234
|
-
interface ErrorMutantRunResult {
|
|
235
|
-
readonly status: 'error';
|
|
236
|
-
readonly errorMessage: string;
|
|
237
|
-
}
|
|
238
|
-
type MutantRunResult = ErrorMutantRunResult | KilledMutantRunResult | SurvivedMutantRunResult | TimeoutMutantRunResult;
|
|
239
|
-
type CoverageAnalysis = 'off' | 'all' | 'perTest';
|
|
240
|
-
interface RunOptions {
|
|
241
|
-
readonly timeout: number;
|
|
242
|
-
readonly disableBail: boolean;
|
|
243
|
-
}
|
|
244
|
-
interface DryRunOptions extends RunOptions {
|
|
245
|
-
readonly coverageAnalysis: CoverageAnalysis;
|
|
246
|
-
readonly files?: readonly string[];
|
|
247
|
-
readonly testFiles?: readonly string[];
|
|
248
|
-
}
|
|
249
|
-
type MutantActivation = 'runtime' | 'static';
|
|
250
|
-
interface MutantRunOptions extends RunOptions {
|
|
251
|
-
readonly testFilter?: readonly string[];
|
|
252
|
-
readonly hitLimit?: number;
|
|
253
|
-
readonly activeMutant: Mutant;
|
|
254
|
-
readonly sandboxFileName: string;
|
|
255
|
-
readonly mutantActivation: MutantActivation;
|
|
256
|
-
readonly reloadEnvironment: boolean;
|
|
257
|
-
}
|
|
258
|
-
interface TestRunnerCapabilities {
|
|
259
|
-
readonly reloadEnvironment: boolean;
|
|
260
|
-
}
|
|
261
|
-
declare function toMutantRunResult(dryRunResult: DryRunResult, reportAllKillers: boolean): MutantRunResult;
|
|
262
|
-
interface TestRunnerService {
|
|
263
|
-
readonly capabilities: Effect.Effect<TestRunnerCapabilities, TestRunnerFailed>;
|
|
264
|
-
readonly init: Effect.Effect<void, TestRunnerFailed>;
|
|
265
|
-
readonly dryRun: (options: DryRunOptions) => Effect.Effect<DryRunResult, TestRunnerFailed>;
|
|
266
|
-
readonly mutantRun: (options: MutantRunOptions) => Effect.Effect<MutantRunResult, TestRunnerFailed>;
|
|
267
|
-
readonly dispose: Effect.Effect<void, TestRunnerFailed>;
|
|
268
|
-
}
|
|
269
|
-
declare const TestRunner_base: Context.ServiceClass<TestRunner, "~@systemfsoftware/stryker-js/TestRunner", TestRunnerService>;
|
|
270
|
-
declare class TestRunner extends TestRunner_base {}
|
|
271
|
-
declare function testFilesProvided(options: {
|
|
272
|
-
readonly testFiles?: readonly string[];
|
|
273
|
-
}): boolean;
|
|
274
|
-
declare namespace Mutant_d_exports {
|
|
275
|
-
export { Coverage, CoverageData, CoveragePerTestId, ERROR_CODES, EarlyResultPlan, ErrnoException, FileDescription, FileDescriptions, INSTRUMENTER_CONSTANTS, InstrumenterContext, Location, LocationSchema, Mutant, MutantCoverage, MutantEarlyResultPlan, MutantResult, MutantRunPlan, MutantStatus, MutantTestCoverage, MutantTestPlan, MutateDescription, MutationRange, Position$1 as Position, PositionSchema, RunPlan, TestPlan, causeText, errorToString, isErrnoException, isMutant, normalizeFileName, Report_schema_d_exports as schema };
|
|
276
|
-
}
|
|
277
|
-
type CoverageData = Record<string, number>;
|
|
278
|
-
type CoveragePerTestId = Record<string, CoverageData>;
|
|
279
|
-
interface Coverage {
|
|
280
|
-
readonly static: CoverageData;
|
|
281
|
-
readonly perTest: CoveragePerTestId;
|
|
282
|
-
}
|
|
283
|
-
type MutantStatus = 'Killed' | 'Survived' | 'NoCoverage' | 'Timeout' | 'CompileError' | 'RuntimeError' | 'Ignored' | 'Pending';
|
|
284
|
-
interface EarlyResultPlan {
|
|
285
|
-
readonly plan: 'EarlyResult';
|
|
286
|
-
readonly mutant: Mutant;
|
|
287
|
-
}
|
|
288
|
-
interface RunPlan {
|
|
289
|
-
readonly plan: 'Run';
|
|
290
|
-
readonly mutant: Mutant;
|
|
291
|
-
readonly runOptions: MutantRunOptions;
|
|
292
|
-
readonly netTime: number;
|
|
293
|
-
}
|
|
294
|
-
type TestPlan = EarlyResultPlan | RunPlan;
|
|
295
|
-
declare const isMutant: (value: unknown) => value is Mutant;
|
|
296
|
-
type MutantTestCoverage = Mutant & {
|
|
297
|
-
readonly coveredBy: ReadonlyArray<string> | undefined;
|
|
298
|
-
readonly static: boolean | undefined;
|
|
299
|
-
};
|
|
300
|
-
type MutantResult = Mutant & {
|
|
301
|
-
readonly status: MutantStatus;
|
|
302
|
-
readonly statusReason?: string | undefined;
|
|
303
|
-
readonly testsCompleted?: number | undefined;
|
|
304
|
-
readonly killedBy?: readonly string[] | undefined;
|
|
305
|
-
readonly coveredBy?: readonly string[] | undefined;
|
|
306
|
-
readonly static?: boolean | undefined;
|
|
307
|
-
};
|
|
308
|
-
declare const INSTRUMENTER_CONSTANTS: Readonly<{
|
|
309
|
-
NAMESPACE: '__stryker__';
|
|
310
|
-
MUTATION_COVERAGE_OBJECT: 'mutantCoverage';
|
|
311
|
-
ACTIVE_MUTANT: 'activeMutant';
|
|
312
|
-
CURRENT_TEST_ID: 'currentTestId';
|
|
313
|
-
HIT_COUNT: 'hitCount';
|
|
314
|
-
HIT_LIMIT: 'hitLimit';
|
|
315
|
-
ACTIVE_MUTANT_ENV_VARIABLE: '__STRYKER_ACTIVE_MUTANT__';
|
|
316
|
-
}>;
|
|
317
|
-
interface InstrumenterContext {
|
|
318
|
-
activeMutant?: string;
|
|
319
|
-
currentTestId?: string;
|
|
320
|
-
mutantCoverage?: MutantCoverage;
|
|
321
|
-
hitCount?: number;
|
|
322
|
-
hitLimit?: number;
|
|
323
|
-
}
|
|
324
|
-
type MutantCoverage = Coverage;
|
|
325
|
-
declare function normalizeFileName(fileName: string): string;
|
|
326
|
-
interface ErrnoException extends Error {
|
|
327
|
-
code?: string;
|
|
328
|
-
errno?: number;
|
|
329
|
-
path?: string;
|
|
330
|
-
syscall?: string;
|
|
331
|
-
}
|
|
332
|
-
declare function isErrnoException(error: unknown): error is ErrnoException;
|
|
333
|
-
declare function errorToString(error: unknown): string;
|
|
334
|
-
declare const ERROR_CODES: Readonly<{
|
|
335
|
-
NoSuchFileOrDirectory: 'ENOENT';
|
|
336
|
-
}>;
|
|
337
|
-
interface MutationRange {
|
|
338
|
-
readonly start: Position$1;
|
|
339
|
-
readonly end: Position$1;
|
|
340
|
-
}
|
|
341
|
-
type MutateDescription = ReadonlyArray<MutationRange> | boolean;
|
|
342
|
-
interface FileDescription {
|
|
343
|
-
readonly mutate: MutateDescription;
|
|
344
|
-
}
|
|
345
|
-
type FileDescriptions = Record<string, FileDescription>;
|
|
346
|
-
type MutantRunPlan = RunPlan;
|
|
347
|
-
type MutantEarlyResultPlan = EarlyResultPlan;
|
|
348
|
-
type MutantTestPlan = TestPlan;
|
|
349
|
-
declare const causeText: (cause: unknown, depth: number) => string | undefined;
|
|
350
|
-
//#endregion
|
|
351
|
-
export { testFilesProvided as $, CoverageAnalysis as A, MutantRunResult as B, causeText as C, normalizeFileName as D, isMutant as E, FailedTestResult as F, SurvivedMutantRunResult as G, RunOptions as H, KilledMutantRunResult as I, TestRunnerCapabilities as J, TestResult as K, MutantActivation as L, DryRunResult as M, ErrorDryRunResult as N, BaseTestResult as O, ErrorMutantRunResult as P, TimeoutMutantRunResult as Q, MutantCoverage$1 as R, TestPlan as S, isErrnoException as T, SkippedTestResult as U, Position as V, SuccessTestResult as W, TestRunner_d_exports as X, TestRunnerService as Y, TimeoutDryRunResult as Z, MutantTestPlan as _, Position$1 as _t, EarlyResultPlan as a, MutantActivationSchema as at, MutationRange as b, FileDescriptions as c, MutantRunResultSchema as ct, MutantCoverage as d, TestRunnerCapabilitiesSchema as dt, toMutantRunResult as et, MutantEarlyResultPlan as f, TestRunnerFailed as ft, MutantTestCoverage as g, Mutant as gt, MutantStatus as h, LocationSchema as ht, ERROR_CODES as i, DryRunStatus as it, DryRunOptions as j, CompleteDryRunResult as k, INSTRUMENTER_CONSTANTS as l, MutantRunStatus as lt, MutantRunPlan as m, Location as mt, CoverageData as n, DryRunOptionsSchema as nt, ErrnoException as o, MutantCoverageSchema as ot, MutantResult as p, TestStatus as pt, TestRunner as q, CoveragePerTestId as r, DryRunResultSchema as rt, FileDescription as s, MutantRunOptionsSchema as st, Coverage as t, CoverageAnalysisSchema as tt, InstrumenterContext as u, TestResultSchema as ut, Mutant_d_exports as v, PositionSchema as vt, errorToString as w, RunPlan as x, MutateDescription as y, MutantRunOptions as z };
|
package/dist/Mutant.d.mts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { C as causeText, D as normalizeFileName, E as isMutant, S as TestPlan, T as isErrnoException, _ as MutantTestPlan, _t as Position, a as EarlyResultPlan, b as MutationRange, c as FileDescriptions, d as MutantCoverage, f as MutantEarlyResultPlan, g as MutantTestCoverage, gt as Mutant, h as MutantStatus, ht as LocationSchema, i as ERROR_CODES, l as INSTRUMENTER_CONSTANTS, m as MutantRunPlan, mt as Location, n as CoverageData, o as ErrnoException, p as MutantResult, r as CoveragePerTestId, s as FileDescription, t as Coverage, u as InstrumenterContext, vt as PositionSchema, w as errorToString, x as RunPlan, y as MutateDescription } from "./Mutant-Ci25PsWA.mjs";
|
|
2
|
-
import { C as Report_schema_d_exports } from "./Report.schema-_buHXdnZ.mjs";
|
|
3
|
-
export { Coverage, CoverageData, CoveragePerTestId, ERROR_CODES, EarlyResultPlan, ErrnoException, FileDescription, FileDescriptions, INSTRUMENTER_CONSTANTS, InstrumenterContext, type Location, LocationSchema, Mutant, MutantCoverage, MutantEarlyResultPlan, MutantResult, MutantRunPlan, MutantStatus, MutantTestCoverage, MutantTestPlan, MutateDescription, MutationRange, type Position, PositionSchema, RunPlan, TestPlan, causeText, errorToString, isErrnoException, isMutant, normalizeFileName, Report_schema_d_exports as schema };
|
package/dist/Mutant.mjs
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { n as Mutant, r as PositionSchema, t as LocationSchema } from "./Mutant.schema-H3r0ho_R.mjs";
|
|
3
|
-
import { t as Report_schema_exports } from "./Report.mjs";
|
|
4
|
-
import * as Match from "effect/Match";
|
|
5
|
-
import * as Option from "effect/Option";
|
|
6
|
-
import * as Predicate from "effect/Predicate";
|
|
7
|
-
//#region src/Mutant.ts
|
|
8
|
-
var Mutant_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
-
ERROR_CODES: () => ERROR_CODES,
|
|
10
|
-
INSTRUMENTER_CONSTANTS: () => INSTRUMENTER_CONSTANTS,
|
|
11
|
-
LocationSchema: () => LocationSchema,
|
|
12
|
-
Mutant: () => Mutant,
|
|
13
|
-
PositionSchema: () => PositionSchema,
|
|
14
|
-
causeText: () => causeText,
|
|
15
|
-
errorToString: () => errorToString,
|
|
16
|
-
isErrnoException: () => isErrnoException,
|
|
17
|
-
isMutant: () => isMutant,
|
|
18
|
-
normalizeFileName: () => normalizeFileName,
|
|
19
|
-
schema: () => Report_schema_exports
|
|
20
|
-
});
|
|
21
|
-
const isMutant = (value) => value instanceof Mutant;
|
|
22
|
-
const INSTRUMENTER_CONSTANTS = Object.freeze({
|
|
23
|
-
NAMESPACE: "__stryker__",
|
|
24
|
-
MUTATION_COVERAGE_OBJECT: "mutantCoverage",
|
|
25
|
-
ACTIVE_MUTANT: "activeMutant",
|
|
26
|
-
CURRENT_TEST_ID: "currentTestId",
|
|
27
|
-
HIT_COUNT: "hitCount",
|
|
28
|
-
HIT_LIMIT: "hitLimit",
|
|
29
|
-
ACTIVE_MUTANT_ENV_VARIABLE: "__STRYKER_ACTIVE_MUTANT__"
|
|
30
|
-
});
|
|
31
|
-
function normalizeFileName(fileName) {
|
|
32
|
-
return fileName.replace(/\\/g, "/");
|
|
33
|
-
}
|
|
34
|
-
const hasText = (value) => Predicate.isString(value) && value.length > 0;
|
|
35
|
-
const textIfNonEmpty = (value) => Option.getOrUndefined(Option.filter(Option.fromUndefinedOr(value), hasText));
|
|
36
|
-
const fieldOf = (value, key) => Match.value(key in value).pipe(Match.when(true, () => {
|
|
37
|
-
return Reflect.get(value, key);
|
|
38
|
-
}), Match.orElse(() => void 0));
|
|
39
|
-
const hasStringCode = (error) => Match.value(fieldOf(error, "code")).pipe(Match.when(Match.string, () => true), Match.orElse(() => false));
|
|
40
|
-
function isErrnoException(error) {
|
|
41
|
-
return Match.value(error).pipe(Match.when(Match.instanceOf(Error), hasStringCode), Match.orElse(() => false));
|
|
42
|
-
}
|
|
43
|
-
const isEmptyNumber = (value) => Match.value(value).pipe(Match.when(0, () => true), Match.orElse(Number.isNaN));
|
|
44
|
-
const isEmptyError = (error) => Match.value(error).pipe(Match.when(Match.undefined, () => true), Match.when(Match.null, () => true), Match.when(Match.string, (text) => text.length === 0), Match.when(Match.number, isEmptyNumber), Match.when(Match.boolean, (value) => !value), Match.orElse(() => false));
|
|
45
|
-
const formatErrnoException = (error) => Match.value(error.stack).pipe(Match.when(hasText, (stack) => `${error.name}: ${error.code} (${error.syscall}) ${stack}`), Match.orElse(() => `${error.name}: ${error.code} (${error.syscall})`));
|
|
46
|
-
const formatError = (error) => Match.value(error.stack).pipe(Match.when(hasText, (stack) => `${error.name}: ${error.message}\n${stack}`), Match.orElse(() => `${error.name}: ${error.message}`));
|
|
47
|
-
const isJsonPrimitive = (value) => Match.value(value).pipe(Match.when(Match.number, () => true), Match.when(Match.boolean, () => true), Match.when(Match.bigint, () => true), Match.orElse(() => false));
|
|
48
|
-
const jsonText = (error) => {
|
|
49
|
-
try {
|
|
50
|
-
return textIfNonEmpty(JSON.stringify(error));
|
|
51
|
-
} catch {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const isNonPlaceholderText = (text) => Match.value({
|
|
56
|
-
hasLength: text.length > 0,
|
|
57
|
-
isPlaceholder: text === "[object Object]"
|
|
58
|
-
}).pipe(Match.when({
|
|
59
|
-
hasLength: true,
|
|
60
|
-
isPlaceholder: false
|
|
61
|
-
}, () => true), Match.orElse(() => false));
|
|
62
|
-
const isUsableText = (value) => Match.value(value).pipe(Match.when(Match.string, isNonPlaceholderText), Match.orElse(() => false));
|
|
63
|
-
const usableText = (value) => Match.value(value).pipe(Match.when(isUsableText, (text) => text), Match.orElse(() => ""));
|
|
64
|
-
const objectToStringText = (value) => Match.value(fieldOf(value, "toString")).pipe(Match.when(Match.instanceOf(Function), (callable) => {
|
|
65
|
-
try {
|
|
66
|
-
return usableText(Reflect.apply(callable, value, []));
|
|
67
|
-
} catch {
|
|
68
|
-
return "";
|
|
69
|
-
}
|
|
70
|
-
}), Match.orElse(() => ""));
|
|
71
|
-
const isObjectType = (cause) => typeof cause === "object";
|
|
72
|
-
const toStringText = (error) => Match.value(error).pipe(Match.when(Match.null, () => ""), Match.when(isObjectType, (value) => objectToStringText(value)), Match.orElse(() => ""));
|
|
73
|
-
const stringifyRest = (error) => Match.value(jsonText(error)).pipe(Match.when(hasText, (json) => json), Match.orElse(() => toStringText(error)));
|
|
74
|
-
const stringifyNonError = (error) => Match.value(error).pipe(Match.when(Match.string, (text) => text), Match.when(isJsonPrimitive, (primitive) => JSON.stringify(primitive)), Match.orElse(() => stringifyRest(error)));
|
|
75
|
-
const errorText = (error) => Match.value(error).pipe(Match.when(isErrnoException, formatErrnoException), Match.orElse(() => formatError(error)));
|
|
76
|
-
function errorToString(error) {
|
|
77
|
-
return Match.value(error).pipe(Match.when(isEmptyError, () => ""), Match.when(Match.instanceOf(Error), errorText), Match.orElse(() => stringifyNonError(error)));
|
|
78
|
-
}
|
|
79
|
-
const ERROR_CODES = Object.freeze({ NoSuchFileOrDirectory: "ENOENT" });
|
|
80
|
-
const errorNameOf = (value) => Match.value(value).pipe(Match.when(Match.instanceOf(Error), (error) => textIfNonEmpty(error.name)), Match.orElse(() => void 0));
|
|
81
|
-
const tagOf = (value) => Match.value(textIfNonEmpty(fieldOf(value, "_tag"))).pipe(Match.when(hasText, (tag) => tag), Match.orElse(() => errorNameOf(value)));
|
|
82
|
-
const textWithNested = (own, nested) => Match.value(own).pipe(Match.when(hasText, (text) => appendNested(text, nested)), Match.orElse(() => nested));
|
|
83
|
-
const appendNested = (own, nested) => Match.value(nested).pipe(Match.when(hasText, (text) => `${own}: ${text}`), Match.orElse(() => own));
|
|
84
|
-
const errorMessage = (error) => Match.value(error.message.length > 0).pipe(Match.when(true, () => error.message), Match.orElse(() => tagOf(error)));
|
|
85
|
-
const errorMessageOrTag = (value) => Match.value(value).pipe(Match.when(Match.instanceOf(Error), errorMessage), Match.orElse(() => tagOf(value)));
|
|
86
|
-
const messageText = (value) => Match.value(textIfNonEmpty(fieldOf(value, "message"))).pipe(Match.when(hasText, (message) => message), Match.orElse(() => errorMessageOrTag(value)));
|
|
87
|
-
const ownCauseText = (value) => Match.value(textIfNonEmpty(fieldOf(value, "reason"))).pipe(Match.when(hasText, (reason) => reason), Match.orElse(() => messageText(value)));
|
|
88
|
-
const causeText = (cause, depth) => Match.value(cause).pipe(Match.when(() => depth > 4, () => void 0), Match.when(Match.undefined, () => void 0), Match.when(Match.null, () => void 0), Match.when(Match.string, textIfNonEmpty), Match.when(isObjectType, (value) => textWithNested(ownCauseText(value), causeText(fieldOf(value, "cause"), depth + 1))), Match.orElse(() => void 0));
|
|
89
|
-
//#endregion
|
|
90
|
-
export { ERROR_CODES, INSTRUMENTER_CONSTANTS, LocationSchema, Mutant, PositionSchema, causeText, errorToString, isErrnoException, isMutant, normalizeFileName, Report_schema_exports as schema, Mutant_exports as t };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as S from "effect/Schema";
|
|
2
|
-
//#region src/Mutant.schema.ts
|
|
3
|
-
const PositionSchema = S.Struct({
|
|
4
|
-
line: S.Finite,
|
|
5
|
-
column: S.Finite
|
|
6
|
-
});
|
|
7
|
-
const LocationSchema = S.Struct({
|
|
8
|
-
start: PositionSchema,
|
|
9
|
-
end: PositionSchema
|
|
10
|
-
});
|
|
11
|
-
var Mutant = class extends S.TaggedClass()("Mutant", {
|
|
12
|
-
id: S.NonEmptyString,
|
|
13
|
-
fileName: S.NonEmptyString,
|
|
14
|
-
mutatorName: S.NonEmptyString,
|
|
15
|
-
replacement: S.String,
|
|
16
|
-
location: LocationSchema,
|
|
17
|
-
status: S.optional(S.Literals([
|
|
18
|
-
"Killed",
|
|
19
|
-
"Survived",
|
|
20
|
-
"NoCoverage",
|
|
21
|
-
"Timeout",
|
|
22
|
-
"CompileError",
|
|
23
|
-
"RuntimeError",
|
|
24
|
-
"Ignored",
|
|
25
|
-
"Pending"
|
|
26
|
-
])),
|
|
27
|
-
statusReason: S.optional(S.String),
|
|
28
|
-
coveredBy: S.optional(S.Array(S.String)),
|
|
29
|
-
static: S.optional(S.Boolean),
|
|
30
|
-
testsCompleted: S.optional(S.Finite),
|
|
31
|
-
description: S.optional(S.String)
|
|
32
|
-
}) {};
|
|
33
|
-
//#endregion
|
|
34
|
-
export { Mutant as n, PositionSchema as r, LocationSchema as t };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { n as Checker } from "./Checker-A8o5B3Ub.mjs";
|
|
2
|
-
import { q as TestRunner } from "./Mutant-Ci25PsWA.mjs";
|
|
3
|
-
import { t as Evaluator } from "./Evaluator-CnAN8-pZ.mjs";
|
|
4
|
-
import { t as Ignorer } from "./Ignorer-BUY68FZQ.mjs";
|
|
5
|
-
import { t as Module } from "./Module-DHKEMAFI.mjs";
|
|
6
|
-
import { l as ReporterFactory } from "./ReporterEvent.schema-BhtyYCZo.mjs";
|
|
7
|
-
import * as Context from "effect/Context";
|
|
8
|
-
import * as S from "effect/Schema";
|
|
9
|
-
import * as Option from "effect/Option";
|
|
10
|
-
import * as Layer from "effect/Layer";
|
|
11
|
-
import * as FileSystem from "effect/FileSystem";
|
|
12
|
-
import * as Path from "effect/Path";
|
|
13
|
-
//#region src/Plugin.schema.d.ts
|
|
14
|
-
declare const PluginKind: S.Literals<readonly ["Checker", "TestRunner", "Reporter", "Ignore", "Evaluator"]>;
|
|
15
|
-
type PluginKind = typeof PluginKind.Type;
|
|
16
|
-
declare const PluginLayerKind: S.Literals<readonly ["Checker", "TestRunner", "Ignore", "Evaluator"]>;
|
|
17
|
-
type PluginLayerKind = typeof PluginLayerKind.Type;
|
|
18
|
-
declare const PluginLayerContribution_base: S.Class<PluginLayerContribution<"Checker" | "Evaluator" | "Ignore" | "TestRunner">, S.TaggedStruct<"PluginContribution", {
|
|
19
|
-
readonly kind: S.Literals<readonly ["Checker", "TestRunner", "Ignore", "Evaluator"]>;
|
|
20
|
-
readonly name: S.String;
|
|
21
|
-
readonly layer: S.Unknown;
|
|
22
|
-
}>, {}>;
|
|
23
|
-
declare class PluginLayerContribution<K extends PluginLayerKind = PluginLayerKind> extends PluginLayerContribution_base {
|
|
24
|
-
readonly kind: K;
|
|
25
|
-
readonly name: string;
|
|
26
|
-
readonly layer: Layer.Layer<PluginInterfaces[K], never, PluginEnvironment>;
|
|
27
|
-
}
|
|
28
|
-
declare const PluginReporterContribution_base: S.Class<PluginReporterContribution, S.TaggedStruct<"PluginContribution", {
|
|
29
|
-
readonly kind: S.Literals<readonly ["Checker", "TestRunner", "Reporter", "Ignore", "Evaluator"]>;
|
|
30
|
-
readonly name: S.String;
|
|
31
|
-
readonly make: S.Unknown;
|
|
32
|
-
}>, {}>;
|
|
33
|
-
declare class PluginReporterContribution extends PluginReporterContribution_base {
|
|
34
|
-
readonly kind: 'Reporter';
|
|
35
|
-
readonly name: string;
|
|
36
|
-
readonly make: ReporterFactory;
|
|
37
|
-
}
|
|
38
|
-
type PluginContribution<K extends PluginKind = PluginKind> = K extends 'Reporter' ? PluginReporterContribution : PluginLayerContribution<Extract<K, PluginLayerKind>>;
|
|
39
|
-
declare const Shadowing_base: S.Class<Shadowing, S.TaggedStruct<"Shadowing", {
|
|
40
|
-
readonly kind: S.String;
|
|
41
|
-
readonly name: S.String;
|
|
42
|
-
readonly shadowedIndex: S.Finite;
|
|
43
|
-
readonly winnerIndex: S.Finite;
|
|
44
|
-
}>, {}>;
|
|
45
|
-
declare class Shadowing extends Shadowing_base {}
|
|
46
|
-
declare namespace Plugin_d_exports {
|
|
47
|
-
export { AnyPluginContribution, ComposedPlugins, ContributionOf, MergedPluginServices, PluginContribution, PluginEnvironment, PluginInterfaces, PluginKind, PluginLayerContribution, PluginLayerKind, PluginReporterContribution, RunConfiguration, SandboxDirectory, SelectedReporterFactory, Shadowing, composePlugins, declarePlugin };
|
|
48
|
-
}
|
|
49
|
-
declare const RunConfiguration_base: Context.ServiceClass<RunConfiguration, "~@systemfsoftware/stryker-js/RunConfiguration", {
|
|
50
|
-
readonly [x: string]: unknown;
|
|
51
|
-
readonly allowConsoleColors: boolean;
|
|
52
|
-
readonly buildCommand?: string | undefined;
|
|
53
|
-
readonly checkers: readonly string[];
|
|
54
|
-
readonly checkerNodeArgs: readonly string[];
|
|
55
|
-
readonly concurrency?: string | number | undefined;
|
|
56
|
-
readonly commandRunner: {
|
|
57
|
-
readonly [x: string]: unknown;
|
|
58
|
-
readonly command: string;
|
|
59
|
-
};
|
|
60
|
-
readonly coverageAnalysis: "all" | "off" | "perTest";
|
|
61
|
-
readonly clearTextReporter: {
|
|
62
|
-
readonly [x: string]: unknown;
|
|
63
|
-
readonly allowColor: boolean;
|
|
64
|
-
readonly allowEmojis: boolean;
|
|
65
|
-
readonly logTests: boolean;
|
|
66
|
-
readonly maxTestsToLog: number;
|
|
67
|
-
readonly reportTests: boolean;
|
|
68
|
-
readonly reportMutants: boolean;
|
|
69
|
-
readonly reportScoreTable: boolean;
|
|
70
|
-
readonly skipFull: boolean;
|
|
71
|
-
};
|
|
72
|
-
readonly dryRunOnly: boolean;
|
|
73
|
-
readonly ignorePatterns: readonly string[];
|
|
74
|
-
readonly ignoreStatic: boolean;
|
|
75
|
-
readonly incremental: boolean;
|
|
76
|
-
readonly incrementalFile: string;
|
|
77
|
-
readonly progressStreamFile: string;
|
|
78
|
-
readonly force: boolean;
|
|
79
|
-
readonly fileLogLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
80
|
-
readonly inPlace: boolean;
|
|
81
|
-
readonly logLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
82
|
-
readonly maxConcurrentTestRunners: number;
|
|
83
|
-
readonly maxTestRunnerReuse: number;
|
|
84
|
-
readonly mutate: readonly string[];
|
|
85
|
-
readonly mutator: {
|
|
86
|
-
readonly excludedMutations: readonly string[];
|
|
87
|
-
};
|
|
88
|
-
readonly packageManager?: "npm" | "pnpm" | "yarn" | undefined;
|
|
89
|
-
readonly plugins: readonly string[];
|
|
90
|
-
readonly appendPlugins: readonly string[];
|
|
91
|
-
readonly reporters: readonly string[];
|
|
92
|
-
readonly htmlReporter: {
|
|
93
|
-
readonly fileName: string;
|
|
94
|
-
};
|
|
95
|
-
readonly jsonReporter: {
|
|
96
|
-
readonly fileName: string;
|
|
97
|
-
};
|
|
98
|
-
readonly disableTypeChecks: string | boolean;
|
|
99
|
-
readonly symlinkNodeModules: boolean;
|
|
100
|
-
readonly tempDirName: string;
|
|
101
|
-
readonly cleanTempDir: "always" | boolean;
|
|
102
|
-
readonly testRunner: string;
|
|
103
|
-
readonly testRunnerNodeArgs: readonly string[];
|
|
104
|
-
readonly thresholds: {
|
|
105
|
-
readonly high: number;
|
|
106
|
-
readonly low: number;
|
|
107
|
-
readonly break: number | null;
|
|
108
|
-
};
|
|
109
|
-
readonly timeoutFactor: number;
|
|
110
|
-
readonly timeoutMS: number;
|
|
111
|
-
readonly dryRunTimeoutMinutes: number;
|
|
112
|
-
readonly tsconfigFile: string;
|
|
113
|
-
readonly warnings: boolean | {
|
|
114
|
-
readonly [x: string]: unknown;
|
|
115
|
-
readonly unknownOptions: boolean;
|
|
116
|
-
readonly preprocessorErrors: boolean;
|
|
117
|
-
readonly unserializableOptions: boolean;
|
|
118
|
-
readonly slow: boolean;
|
|
119
|
-
};
|
|
120
|
-
readonly disableBail: boolean;
|
|
121
|
-
readonly allowEmpty: boolean;
|
|
122
|
-
readonly ignorers: readonly string[];
|
|
123
|
-
readonly testFiles: readonly string[];
|
|
124
|
-
}>;
|
|
125
|
-
declare class RunConfiguration extends RunConfiguration_base {}
|
|
126
|
-
declare const SandboxDirectory_base: Context.ServiceClass<SandboxDirectory, "~@systemfsoftware/stryker-js/SandboxDirectory", string>;
|
|
127
|
-
declare class SandboxDirectory extends SandboxDirectory_base {}
|
|
128
|
-
interface PluginInterfaces {
|
|
129
|
-
Checker: Checker;
|
|
130
|
-
TestRunner: TestRunner;
|
|
131
|
-
Ignore: Ignorer;
|
|
132
|
-
Evaluator: Evaluator;
|
|
133
|
-
}
|
|
134
|
-
type PluginEnvironment = RunConfiguration | SandboxDirectory | FileSystem.FileSystem | Module | Path.Path;
|
|
135
|
-
type AnyPluginContribution = { [K in PluginKind]: PluginContribution<K>; }[PluginKind];
|
|
136
|
-
type ContributionOf<K extends PluginKind> = Extract<AnyPluginContribution, {
|
|
137
|
-
readonly kind: K;
|
|
138
|
-
}>;
|
|
139
|
-
declare function declarePlugin(kind: 'Reporter', name: string, make: ReporterFactory): PluginContribution<'Reporter'>;
|
|
140
|
-
declare function declarePlugin<K extends PluginLayerKind>(kind: K, name: string, layer: Layer.Layer<PluginInterfaces[K], never, PluginEnvironment>): PluginContribution<K>;
|
|
141
|
-
type MergedPluginServices = Checker & Ignorer & TestRunner;
|
|
142
|
-
interface SelectedReporterFactory {
|
|
143
|
-
readonly name: string;
|
|
144
|
-
readonly make: ReporterFactory;
|
|
145
|
-
}
|
|
146
|
-
interface ComposedPlugins {
|
|
147
|
-
readonly layer: Option.Option<Layer.Layer<MergedPluginServices, never, PluginEnvironment>>;
|
|
148
|
-
readonly reporterFactories: readonly SelectedReporterFactory[];
|
|
149
|
-
readonly shadowings: readonly Shadowing[];
|
|
150
|
-
}
|
|
151
|
-
declare function composePlugins(contributions: readonly AnyPluginContribution[]): ComposedPlugins;
|
|
152
|
-
//#endregion
|
|
153
|
-
export { PluginReporterContribution as _, PluginEnvironment as a, RunConfiguration as c, composePlugins as d, declarePlugin as f, PluginLayerKind as g, PluginLayerContribution as h, MergedPluginServices as i, SandboxDirectory as l, PluginKind as m, ComposedPlugins as n, PluginInterfaces as o, PluginContribution as p, ContributionOf as r, Plugin_d_exports as s, AnyPluginContribution as t, SelectedReporterFactory as u, Shadowing as v };
|