@systemfsoftware/stryker-js 6.1.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,312 +0,0 @@
1
- import * as Effect$1 from 'effect/Effect';
2
- import * as FileSystem from 'effect/FileSystem';
3
- import * as Path from 'effect/Path';
4
- import * as S from 'effect/Schema';
5
- import * as Stdio from 'effect/Stdio';
6
- import { YieldableError } from 'effect/Cause';
7
-
8
- export declare interface BuiltinReporterServices {
9
- readonly fileSystem: FileSystem.FileSystem;
10
- readonly path: Path.Path;
11
- readonly stdio: Stdio.Stdio;
12
- }
13
-
14
- export declare class DryRunCompleted extends DryRunCompleted_base {}
15
-
16
- declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dryRunCompleted", {
17
- readonly timing: S.Struct<{
18
- readonly net: S.Finite;
19
- readonly overhead: S.Finite;
20
- }>;
21
- readonly capabilities: S.Struct<{
22
- readonly reloadEnvironment: S.Boolean;
23
- }>;
24
- readonly testCount: S.Finite;
25
- readonly tests: S.$Array<S.Union<readonly [S.Struct<{
26
- readonly id: S.String;
27
- readonly name: S.String;
28
- readonly timeSpentMs: S.Finite;
29
- readonly fileName: S.optionalKey<S.String>;
30
- readonly startPosition: S.optionalKey<S.Struct<{
31
- readonly line: S.Finite;
32
- readonly column: S.Finite;
33
- }>>;
34
- readonly status: S.Literal<"failed">;
35
- readonly failureMessage: S.String;
36
- }>, S.Struct<{
37
- readonly id: S.String;
38
- readonly name: S.String;
39
- readonly timeSpentMs: S.Finite;
40
- readonly fileName: S.optionalKey<S.String>;
41
- readonly startPosition: S.optionalKey<S.Struct<{
42
- readonly line: S.Finite;
43
- readonly column: S.Finite;
44
- }>>;
45
- readonly status: S.Literal<"skipped">;
46
- }>, S.Struct<{
47
- readonly id: S.String;
48
- readonly name: S.String;
49
- readonly timeSpentMs: S.Finite;
50
- readonly fileName: S.optionalKey<S.String>;
51
- readonly startPosition: S.optionalKey<S.Struct<{
52
- readonly line: S.Finite;
53
- readonly column: S.Finite;
54
- }>>;
55
- readonly status: S.Literal<"success">;
56
- }>]>>;
57
- }>, {}>;
58
-
59
- export declare const makeBuiltinReporterFactories: (services: BuiltinReporterServices) => Record<string, ReporterFactory>;
60
-
61
- declare type Metrics = typeof MetricsSchema.Type;
62
-
63
- declare interface MetricsResult {
64
- readonly name: string;
65
- readonly metrics: Metrics;
66
- readonly childResults: readonly MetricsResult[];
67
- }
68
-
69
- declare const MetricsSchema: S.Struct<{
70
- readonly pending: S.Finite;
71
- readonly killed: S.Finite;
72
- readonly timeout: S.Finite;
73
- readonly survived: S.Finite;
74
- readonly noCoverage: S.Finite;
75
- readonly runtimeErrors: S.Finite;
76
- readonly compileErrors: S.Finite;
77
- readonly ignored: S.Finite;
78
- readonly totalDetected: S.Finite;
79
- readonly totalUndetected: S.Finite;
80
- readonly totalInvalid: S.Finite;
81
- readonly totalValid: S.Finite;
82
- readonly totalMutants: S.Finite;
83
- readonly totalCovered: S.Finite;
84
- readonly mutationScore: S.Finite;
85
- readonly mutationScoreBasedOnCoveredCode: S.Finite;
86
- }>;
87
-
88
- export declare class MutantTested extends MutantTested_base {}
89
-
90
- declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTested", {
91
- readonly id: S.String;
92
- readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
93
- readonly file: S.String;
94
- readonly location: S.Struct<{
95
- readonly start: S.Struct<{
96
- readonly line: S.Finite;
97
- readonly column: S.Finite;
98
- }>;
99
- readonly end: S.Struct<{
100
- readonly line: S.Finite;
101
- readonly column: S.Finite;
102
- }>;
103
- }>;
104
- readonly mutator: S.String;
105
- readonly replacement: S.NullOr<S.String>;
106
- readonly completed: S.Finite;
107
- readonly total: S.Finite;
108
- }>, {}>;
109
-
110
- export declare class MutationTestingPlanReady extends MutationTestingPlanReady_base {}
111
-
112
- declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
113
- readonly total: S.Finite;
114
- readonly plans: S.$Array<S.Struct<{
115
- readonly mutantId: S.String;
116
- readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
117
- readonly netTime: S.Finite;
118
- readonly reloadEnvironment: S.Boolean;
119
- }>>;
120
- }>, {}>;
121
-
122
- export declare class MutationTestReportReady extends MutationTestReportReady_base {}
123
-
124
- declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.TaggedStruct<"mutationTestReportReady", {
125
- readonly report: S.Struct<{
126
- readonly schemaVersion: S.String;
127
- readonly files: S.$Record<S.String, S.Struct<{
128
- readonly language: S.String;
129
- readonly source: S.String;
130
- readonly mutants: S.$Array<S.Struct<{
131
- readonly id: S.String;
132
- readonly mutatorName: S.String;
133
- readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
134
- readonly location: S.Struct<{
135
- readonly start: S.Struct<{
136
- readonly line: S.Finite;
137
- readonly column: S.Finite;
138
- }>;
139
- readonly end: S.Struct<{
140
- readonly line: S.Finite;
141
- readonly column: S.Finite;
142
- }>;
143
- }>;
144
- readonly replacement: S.optional<S.String>;
145
- readonly description: S.optional<S.String>;
146
- readonly statusReason: S.optional<S.String>;
147
- readonly static: S.optional<S.Boolean>;
148
- readonly coveredBy: S.optional<S.$Array<S.String>>;
149
- readonly killedBy: S.optional<S.$Array<S.String>>;
150
- readonly testsCompleted: S.optional<S.Finite>;
151
- readonly duration: S.optional<S.Finite>;
152
- }>>;
153
- }>>;
154
- readonly thresholds: S.Struct<{
155
- readonly high: S.Finite;
156
- readonly low: S.Finite;
157
- }>;
158
- readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
159
- readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
160
- readonly source: S.optional<S.String>;
161
- readonly tests: S.$Array<S.Struct<{
162
- readonly id: S.String;
163
- readonly name: S.String;
164
- readonly location: S.optional<S.Struct<{
165
- readonly start: S.Struct<{
166
- readonly line: S.Finite;
167
- readonly column: S.Finite;
168
- }>;
169
- readonly end: S.optional<S.Struct<{
170
- readonly line: S.Finite;
171
- readonly column: S.Finite;
172
- }>>;
173
- }>>;
174
- }>>;
175
- }>>>;
176
- readonly projectRoot: S.optional<S.String>;
177
- readonly framework: S.optional<S.Struct<{
178
- readonly name: S.String;
179
- readonly version: S.optional<S.String>;
180
- readonly branding: S.optional<S.Struct<{
181
- readonly homepageUrl: S.String;
182
- readonly imageUrl: S.optional<S.String>;
183
- }>>;
184
- readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
185
- }>>;
186
- }>;
187
- readonly metrics: S.Struct<{
188
- readonly name: S.String;
189
- readonly metrics: S.Struct<{
190
- readonly pending: S.Finite;
191
- readonly killed: S.Finite;
192
- readonly timeout: S.Finite;
193
- readonly survived: S.Finite;
194
- readonly noCoverage: S.Finite;
195
- readonly runtimeErrors: S.Finite;
196
- readonly compileErrors: S.Finite;
197
- readonly ignored: S.Finite;
198
- readonly totalDetected: S.Finite;
199
- readonly totalUndetected: S.Finite;
200
- readonly totalInvalid: S.Finite;
201
- readonly totalValid: S.Finite;
202
- readonly totalMutants: S.Finite;
203
- readonly totalCovered: S.Finite;
204
- readonly mutationScore: S.Finite;
205
- readonly mutationScoreBasedOnCoveredCode: S.Finite;
206
- }>;
207
- readonly childResults: S.$Array<S.suspend<S.Codec<MetricsResult, MetricsResult, never, never>>>;
208
- }>;
209
- }>, {}>;
210
-
211
- export declare type ReporterEvent = DryRunCompleted | MutationTestingPlanReady | MutantTested | MutationTestReportReady;
212
-
213
- export declare type ReporterFactory = (options: StrykerOptions, init: ReporterInit) => (events: AsyncIterable<ReporterEvent>) => Effect$1.Effect<void, ReporterFailed>;
214
-
215
- export declare class ReporterFailed extends ReporterFailed_base {}
216
-
217
- declare const ReporterFailed_base: S.Class<ReporterFailed, S.TaggedStruct<"ReporterFailed", {
218
- readonly cause: S.String;
219
- readonly event: S.Literals<readonly ["dryRunCompleted", "mutationTestingPlanReady", "mutantTested", "mutationTestReportReady"]>;
220
- readonly reporterName: S.String;
221
- }>, YieldableError>;
222
-
223
- export declare interface ReporterInit {
224
- readonly traceparent?: string | undefined;
225
- readonly tracestate?: string | undefined;
226
- }
227
-
228
- /** The decoded type: every defaulted option is present. */
229
- export declare type StrykerOptions = S.Schema.Type<typeof StrykerOptionsSchema>;
230
-
231
- export declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
232
- readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
233
- readonly buildCommand: S.optional<S.String>;
234
- readonly checkers: S.withDecodingDefaultKey<S.$Array<S.Struct<{
235
- readonly plugin: S.String;
236
- readonly nodeArgs: S.optional<S.$Array<S.String>>;
237
- readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
238
- }>>, never>;
239
- readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
240
- readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
241
- readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
242
- readonly command: S.withDecodingDefaultKey<S.String, never>;
243
- }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
244
- readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
245
- readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
246
- readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
247
- readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
248
- readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
249
- readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
250
- readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
251
- readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
252
- readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
253
- readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
254
- }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
255
- readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
256
- readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
257
- readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
258
- readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
259
- readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
260
- readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
261
- readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
262
- readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
263
- readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
264
- readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
265
- readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
266
- readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
267
- readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
268
- readonly mutator: S.withDecodingDefaultKey<S.Struct<{
269
- readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
270
- }>, never>;
271
- readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
272
- readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
273
- readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
274
- readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
275
- readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
276
- readonly fileName: S.withDecodingDefaultKey<S.String, never>;
277
- }>, never>;
278
- readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
279
- readonly fileName: S.withDecodingDefaultKey<S.String, never>;
280
- }>, never>;
281
- readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
282
- readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
283
- readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
284
- readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
285
- readonly testRunner: S.withDecodingDefaultKey<S.Union<readonly [S.String, S.Struct<{
286
- readonly plugin: S.String;
287
- readonly nodeArgs: S.optional<S.$Array<S.String>>;
288
- readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
289
- }>]>, never>;
290
- readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
291
- readonly thresholds: S.withDecodingDefaultKey<S.Struct<{
292
- readonly high: S.withDecodingDefaultKey<S.Finite, never>;
293
- readonly low: S.withDecodingDefaultKey<S.Finite, never>;
294
- readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
295
- }>, never>;
296
- readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
297
- readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
298
- readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
299
- readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
300
- readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
301
- readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
302
- readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
303
- readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
304
- readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
305
- }>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
306
- readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
307
- readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
308
- readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
309
- readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
310
- }>, readonly [S.$Record<S.String, S.Unknown>]>;
311
-
312
- export { }
@@ -1,3 +0,0 @@
1
- import { c as MutantTested, d as MutationTestingPlanReady, l as MutationTestReportReady, n as DryRunCompleted, y as StrykerOptionsSchema } from "./dist-CWbipfGB.mjs";
2
- import { t as makeBuiltinReporterFactories } from "./builtin-reporters-BqePgAN0.mjs";
3
- export { DryRunCompleted, MutantTested, MutationTestReportReady, MutationTestingPlanReady, StrykerOptionsSchema, makeBuiltinReporterFactories };