@systemfsoftware/stryker-js 9.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/Run.schema-CgVfoOfk.mjs +8756 -0
- package/dist/Run.schema-t292QQGe.d.mts +173 -0
- package/dist/config.d.mts +2 -1
- package/dist/events.d.mts +2 -0
- package/dist/events.mjs +2 -0
- package/dist/{getMachineId-bsd-C6bLIaiv.mjs → getMachineId-bsd-DGLFi8Ia.mjs} +1 -1
- package/dist/{getMachineId-bsd-CXSiHDga.mjs → getMachineId-bsd-YZILidse.mjs} +1 -1
- package/dist/{getMachineId-darwin-DPZ0kdKD.mjs → getMachineId-darwin-B_CgClId.mjs} +1 -1
- package/dist/{getMachineId-darwin-D3cIKeqx.mjs → getMachineId-darwin-Bfwczd9V.mjs} +1 -1
- package/dist/{getMachineId-linux-Ci8OVJU0.mjs → getMachineId-linux-CPAE174r.mjs} +1 -1
- package/dist/{getMachineId-linux-CQwLSlZk.mjs → getMachineId-linux-DprzjpT3.mjs} +1 -1
- package/dist/{getMachineId-unsupported-PX0hnW6X.mjs → getMachineId-unsupported-Ce9f061A.mjs} +1 -1
- package/dist/{getMachineId-unsupported-_ExL3Avl.mjs → getMachineId-unsupported-j7fStyPQ.mjs} +1 -1
- package/dist/{getMachineId-win-D9Tb0p7w.mjs → getMachineId-win-DETv1PQd.mjs} +1 -1
- package/dist/{getMachineId-win-BCsS9pC_.mjs → getMachineId-win-ZJtT3h1l.mjs} +1 -1
- package/dist/{output-mode-CE6VNHfH.d.mts → index-D_mcApox.d.mts} +96 -103
- package/dist/index.d.mts +136 -90
- package/dist/index.mjs +3 -2
- package/dist/main.mjs +14736 -16986
- package/dist/{mutation-test.cell-BTa-up9u.d.mts → mutation-test.cell-Dp6QiuRg.d.mts} +23 -130
- package/dist/output-mode-CfGHDpi5.d.mts +17 -0
- package/dist/parser.wasm32-wasi.wasm +0 -0
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/src-CMHnl87m.mjs +6452 -0
- package/dist/{src-js-DRK8boNV.mjs → src-js-CvBdbRpe.mjs} +129 -56
- package/dist/{wasm-Dr7kZatW.mjs → wasm-klkEDrvQ.mjs} +4545 -4335
- package/package.json +27 -23
- package/dist/src-BQuaL-fB.mjs +0 -15629
|
@@ -1,44 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as ReporterFactory, Ct as RunMutantResult, K as StrykerOptions, P as PartialStrykerOptions, W as ReporterRpcs, X as TestResult, _ as ExitClass, at as WorkerPluginKind, ct as FileDescription, ft as Mutant, j as MutationTestResult, l as CompleteDryRunResult, lt as FileDescriptions, st as CoverageData, yt as MutateDescription } from "./index-D_mcApox.mjs";
|
|
2
|
+
import { r as ResolvedMode } from "./output-mode-CfGHDpi5.mjs";
|
|
3
|
+
import { _ as RunStarted, c as PhaseEntered, i as HelpRendered, l as PlanKnown, m as RunMutantTested, p as RunFailed, r as Heartbeat, x as VerdictReached } from "./Run.schema-t292QQGe.mjs";
|
|
2
4
|
import * as Effect$1 from "effect/Effect";
|
|
3
5
|
import * as FileSystem from "effect/FileSystem";
|
|
4
6
|
import * as Path from "effect/Path";
|
|
5
7
|
import * as Stdio from "effect/Stdio";
|
|
6
|
-
import { Cell } from "@systemfsoftware/effect-cell-types";
|
|
7
|
-
import * as S from "effect/Schema";
|
|
8
|
-
import "effect/Option";
|
|
9
|
-
import { Schema } from "effect";
|
|
10
8
|
import * as Context from "effect/Context";
|
|
11
|
-
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
12
|
-
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
13
9
|
import * as Layer from "effect/Layer";
|
|
10
|
+
import "effect/Option";
|
|
14
11
|
import * as Queue from "effect/Queue";
|
|
15
12
|
import "effect/Result";
|
|
16
|
-
import * as
|
|
13
|
+
import * as S from "effect/Schema";
|
|
14
|
+
import { Cell } from "@systemfsoftware/effect-cell-types";
|
|
15
|
+
import { Schema } from "effect";
|
|
16
|
+
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
17
|
+
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
17
18
|
import * as Scope from "effect/Scope";
|
|
18
19
|
import * as EffectDuration from "effect/Duration";
|
|
19
20
|
import * as MutableHashMap from "effect/MutableHashMap";
|
|
20
21
|
import * as MutableHashSet from "effect/MutableHashSet";
|
|
21
22
|
import * as HashMap from "effect/HashMap";
|
|
23
|
+
import * as Cause from "effect/Cause";
|
|
22
24
|
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
|
|
23
25
|
import * as RpcClient from "effect/unstable/rpc/RpcClient";
|
|
24
26
|
import * as Schedule from "effect/Schedule";
|
|
25
27
|
import { PlatformError } from "effect/PlatformError";
|
|
26
28
|
import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
|
|
27
29
|
import * as Socket from "effect/unstable/socket/Socket";
|
|
28
|
-
//#region src/Run.schema.d.ts
|
|
29
|
-
declare const TypeId: '~stryker/mutation-run/StageError';
|
|
30
|
-
declare const StageError_base: S.Class<StageError, S.TaggedStruct<"StageError", {
|
|
31
|
-
readonly stage: S.Literals<readonly ["prepare", "instrument", "dryRun", "dryRunNoTests", "mutationTest"]>;
|
|
32
|
-
readonly reason: S.String;
|
|
33
|
-
readonly cause: S.optional<S.Defect>;
|
|
34
|
-
readonly command: S.optional<S.String>;
|
|
35
|
-
}>, import("effect/Cause").YieldableError>;
|
|
36
|
-
declare class StageError extends StageError_base {
|
|
37
|
-
readonly [TypeId]: "~stryker/mutation-run/StageError";
|
|
38
|
-
get exitClass(): ExitClass;
|
|
39
|
-
get message(): string;
|
|
40
|
-
}
|
|
41
|
-
//#endregion
|
|
42
30
|
//#region src/Worker.schema.d.ts
|
|
43
31
|
declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
|
|
44
32
|
readonly pid: Schema.Int;
|
|
@@ -98,109 +86,6 @@ interface WorkerClientParams<Rpcs extends Rpc.Any> extends WorkerSpawnParams {
|
|
|
98
86
|
}
|
|
99
87
|
declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect$1.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
100
88
|
//#endregion
|
|
101
|
-
//#region src/RunEvent.schema.d.ts
|
|
102
|
-
declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
103
|
-
type RunPhase = typeof RunPhase.Type;
|
|
104
|
-
declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
|
|
105
|
-
readonly schemaVersion: S.String;
|
|
106
|
-
readonly runId: S.String;
|
|
107
|
-
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
108
|
-
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
109
|
-
}>, {}>;
|
|
110
|
-
declare class RunStarted extends RunStarted_base {}
|
|
111
|
-
declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
|
|
112
|
-
readonly phase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
113
|
-
readonly elapsedMs: S.Finite;
|
|
114
|
-
}>, {}>;
|
|
115
|
-
declare class PhaseEntered extends PhaseEntered_base {}
|
|
116
|
-
declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
|
|
117
|
-
readonly total: S.Finite;
|
|
118
|
-
}>, {}>;
|
|
119
|
-
declare class PlanKnown extends PlanKnown_base {}
|
|
120
|
-
declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mutant", {
|
|
121
|
-
readonly id: S.String;
|
|
122
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
123
|
-
readonly file: S.String;
|
|
124
|
-
readonly location: S.Struct<{
|
|
125
|
-
readonly start: S.Struct<{
|
|
126
|
-
readonly line: S.Finite;
|
|
127
|
-
readonly column: S.Finite;
|
|
128
|
-
}>;
|
|
129
|
-
readonly end: S.Struct<{
|
|
130
|
-
readonly line: S.Finite;
|
|
131
|
-
readonly column: S.Finite;
|
|
132
|
-
}>;
|
|
133
|
-
}>;
|
|
134
|
-
readonly mutator: S.String;
|
|
135
|
-
readonly replacement: S.NullOr<S.String>;
|
|
136
|
-
readonly completed: S.Finite;
|
|
137
|
-
readonly total: S.Finite;
|
|
138
|
-
}>, {}>;
|
|
139
|
-
declare class RunMutantTested extends RunMutantTested_base {}
|
|
140
|
-
declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
|
|
141
|
-
readonly elapsedMs: S.Finite;
|
|
142
|
-
readonly completed: S.Finite;
|
|
143
|
-
readonly total: S.NullOr<S.Finite>;
|
|
144
|
-
}>, {}>;
|
|
145
|
-
declare class Heartbeat extends Heartbeat_base {}
|
|
146
|
-
declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
|
|
147
|
-
readonly schemaVersion: S.String;
|
|
148
|
-
readonly runId: S.String;
|
|
149
|
-
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
150
|
-
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
151
|
-
readonly score: S.NullOr<S.Finite>;
|
|
152
|
-
readonly thresholds: S.Struct<{
|
|
153
|
-
readonly high: S.Finite;
|
|
154
|
-
readonly low: S.Finite;
|
|
155
|
-
readonly break: S.NullOr<S.Finite>;
|
|
156
|
-
}>;
|
|
157
|
-
readonly reportFile: S.NullOr<S.String>;
|
|
158
|
-
readonly counts: S.Struct<{
|
|
159
|
-
readonly killed: S.Finite;
|
|
160
|
-
readonly timeout: S.Finite;
|
|
161
|
-
readonly survived: S.Finite;
|
|
162
|
-
readonly noCoverage: S.Finite;
|
|
163
|
-
readonly runtimeErrors: S.Finite;
|
|
164
|
-
readonly compileErrors: S.Finite;
|
|
165
|
-
readonly ignored: S.Finite;
|
|
166
|
-
readonly pending: S.Finite;
|
|
167
|
-
}>;
|
|
168
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
169
|
-
readonly id: S.String;
|
|
170
|
-
readonly file: S.String;
|
|
171
|
-
readonly location: S.Struct<{
|
|
172
|
-
readonly start: S.Struct<{
|
|
173
|
-
readonly line: S.Finite;
|
|
174
|
-
readonly column: S.Finite;
|
|
175
|
-
}>;
|
|
176
|
-
readonly end: S.Struct<{
|
|
177
|
-
readonly line: S.Finite;
|
|
178
|
-
readonly column: S.Finite;
|
|
179
|
-
}>;
|
|
180
|
-
}>;
|
|
181
|
-
readonly mutator: S.String;
|
|
182
|
-
readonly replacement: S.NullOr<S.String>;
|
|
183
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
184
|
-
}>>;
|
|
185
|
-
}>, {}>;
|
|
186
|
-
declare class VerdictReached extends VerdictReached_base {}
|
|
187
|
-
declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
|
|
188
|
-
readonly schemaVersion: S.String;
|
|
189
|
-
readonly code: S.Finite;
|
|
190
|
-
readonly error: S.String;
|
|
191
|
-
readonly remediation: S.String;
|
|
192
|
-
}>, {}>;
|
|
193
|
-
declare class RunFailed extends RunFailed_base {}
|
|
194
|
-
declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
|
|
195
|
-
readonly schemaVersion: S.String;
|
|
196
|
-
readonly code: S.Literals<readonly [0]>;
|
|
197
|
-
readonly help: S.String;
|
|
198
|
-
}>, {}>;
|
|
199
|
-
declare class HelpRendered extends HelpRendered_base {}
|
|
200
|
-
declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
|
|
201
|
-
type RunEvent = typeof RunEvent.Type;
|
|
202
|
-
type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
|
|
203
|
-
//#endregion
|
|
204
89
|
//#region src/RunEvents.d.ts
|
|
205
90
|
declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/RunEvents", Queue.Queue<Heartbeat | HelpRendered | PhaseEntered | PlanKnown | RunFailed | RunMutantTested | RunStarted | VerdictReached, Cause.Done<void>>>;
|
|
206
91
|
declare class RunEvents extends RunEvents_base {}
|
|
@@ -525,7 +410,7 @@ declare interface ExportSpecifier extends Span$1 {
|
|
|
525
410
|
exportKind?: ImportOrExportKind;
|
|
526
411
|
parent?: Node$1;
|
|
527
412
|
}
|
|
528
|
-
declare type Expression$1 = BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | IdentifierReference$1 |
|
|
413
|
+
declare type Expression$1 = BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | IdentifierReference$1 | Super$1 | ArrayExpression$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AwaitExpression | BinaryExpression$1 | CallExpression$1 | ChainExpression$1 | Class$1 | ConditionalExpression$1 | Function$1 | ImportExpression$1 | LogicalExpression$1 | NewExpression$1 | ObjectExpression$1 | ParenthesizedExpression | SequenceExpression$1 | TaggedTemplateExpression$1 | ThisExpression$1 | UnaryExpression$1 | UpdateExpression$1 | YieldExpression$1 | PrivateInExpression$1 | MetaProperty$1 | JSXElement$1 | JSXFragment$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSTypeAssertion$1 | TSNonNullExpression$1 | TSInstantiationExpression$1 | V8IntrinsicExpression | MemberExpression$1;
|
|
529
414
|
declare interface ExpressionStatement$1 extends Span$1 {
|
|
530
415
|
type: "ExpressionStatement";
|
|
531
416
|
expression: Expression$1;
|
|
@@ -545,7 +430,7 @@ declare type FormalParameter = {
|
|
|
545
430
|
declare interface FormalParameterRest extends Span$1 {
|
|
546
431
|
type: "RestElement";
|
|
547
432
|
argument: BindingPattern$1;
|
|
548
|
-
decorators?:
|
|
433
|
+
decorators?: Array<Decorator$1>;
|
|
549
434
|
optional?: boolean;
|
|
550
435
|
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
551
436
|
value?: null;
|
|
@@ -1731,11 +1616,19 @@ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
1731
1616
|
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1732
1617
|
}>]>, never>;
|
|
1733
1618
|
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
1734
|
-
readonly thresholds: S.withDecodingDefaultKey<S.
|
|
1619
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
1620
|
+
readonly high: number;
|
|
1621
|
+
readonly low: number;
|
|
1622
|
+
readonly break: number | null;
|
|
1623
|
+
}, {
|
|
1624
|
+
readonly high: number;
|
|
1625
|
+
readonly low: number;
|
|
1626
|
+
readonly break: number | null;
|
|
1627
|
+
}>, S.Struct<{
|
|
1735
1628
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1736
1629
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1737
1630
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
1738
|
-
}>, never>;
|
|
1631
|
+
}>, never, never>, never>;
|
|
1739
1632
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1740
1633
|
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
1741
1634
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
@@ -1861,4 +1754,4 @@ interface MutationTestDone {
|
|
|
1861
1754
|
readonly verdict: ExitClass | null;
|
|
1862
1755
|
}
|
|
1863
1756
|
//#endregion
|
|
1864
|
-
export { PluginKind as $, ExtendsStepDocument as A,
|
|
1757
|
+
export { PluginKind as $, ExtendsStepDocument as A, MergeResult as B, ConfigError as C, ConfigFileUnsupportedError as D, ConfigFileUnreadableError as E, ExtendsStepResolve as F, AnyPluginDescriptor as G, extendsPropertySchema as H, ExtendsStepState as I, EvaluatorPluginDescriptor as J, AnyWorkerPluginDescriptor as K, ExtendsStepStateSchema as L, ExtendsStepDone as M, ExtendsStepRead as N, ExtendsRefusalReason as O, ExtendsStepRefused as P, PluginDescriptorOf as Q, ImportedModuleSchema as R, ConfigDocumentSchema as S, WorkerBootTimeoutError as St, ConfigFileNotFoundError as T, forkOptionsSchema as U, ReadConfigCommand as V, survivorsPriorReport as W, LoadedPlugins as X, EvaluatorPluginSource as Y, PluginDescriptor as Z, ReporterStage as _, WorkerSpawnParams as _t, WiredRunLayer as a, IdGeneratorShape as at, reporterWorkerFactory as b, ChildProcessCrashedError as bt, PrepareDone as c, RunEvents as ct, RunEnvironmentShape as d, SpawnedSocketWorker as dt, PluginSource as et, SandboxHandle as f, WorkerBootError as ft, REPORTER_EVENT_BATCH_BOUND as g, WorkerLauncherShape as gt, ProjectFile as h, WorkerLauncher as ht, StageServices as i, IdGenerator as it, ExtendsStepDocumentSchema as j, ExtendsStepDecision as k, PrepareExecutorArgs as l, RunIdentity as lt, Project as m, WorkerExit as mt, EnginePorts as n, WorkerPluginSource as nt, DryRunDone as o, classifyWorkerExit as ot, StrykerError as p, WorkerClientParams as pt, AnyWorkerPluginSource as q, RunStageServices as r, Ignorer as rt, InstrumentDone as s, TestCoverage as st, MutationTestDone as t, WorkerPluginDescriptor as tt, RunEnvironment as u, RunIdentityShape as ut, ReporterWorkerClient as v, connectRetry as vt, ConfigFileInvalidError as w, spawnReporterWorker as x, OutOfMemoryError as xt, SpawnReporterWorkerParams as y, makeWorkerClient as yt, MergeCommand as z };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/output-mode.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Mode type vocabulary shared with the CLI package. Runtime resolution
|
|
4
|
+
* (`resolveMode`) and gate functions (`isProgressEnabled`, `isColorEnabled`)
|
|
5
|
+
* live in the CLI; the `ResolvedMode` fields (`mode`, `signal`,
|
|
6
|
+
* `stdoutIsTTY`) ride along in `VerdictEnvelope` (`verdict-envelope.ts`),
|
|
7
|
+
* so the types stay where the data does.
|
|
8
|
+
*/
|
|
9
|
+
type OutputMode = 'human' | 'machine';
|
|
10
|
+
type ModeSignal = 'flag' | 'env' | 'tty' | 'agent' | 'tool';
|
|
11
|
+
interface ResolvedMode {
|
|
12
|
+
readonly mode: OutputMode;
|
|
13
|
+
readonly signal: ModeSignal;
|
|
14
|
+
readonly stdoutIsTTY: boolean;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { OutputMode as n, ResolvedMode as r, ModeSignal as t };
|
|
Binary file
|
package/dist/promises.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as MutationTestDone } from "./mutation-test.cell-
|
|
1
|
+
import { P as PartialStrykerOptions } from "./index-D_mcApox.mjs";
|
|
2
|
+
import { t as MutationTestDone } from "./mutation-test.cell-Dp6QiuRg.mjs";
|
|
3
3
|
//#region src/promises/index.d.ts
|
|
4
4
|
export declare const run: (options: PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Promise<MutationTestDone>;
|
|
5
5
|
//#endregion
|
package/dist/promises.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as strykerCell } from "./src-
|
|
1
|
+
import { t as strykerCell } from "./src-CMHnl87m.mjs";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
|
|
4
4
|
import * as NodePath from "@effect/platform-node-shared/NodePath";
|