@systemfsoftware/stryker-js 10.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 +6 -0
- package/dist/{Run.schema-C0Cxsfe9.mjs → Run.schema-CgVfoOfk.mjs} +71 -61
- package/dist/{Run.schema-BBKIZ81u.d.mts → Run.schema-t292QQGe.d.mts} +13 -5
- package/dist/config.d.mts +1 -1
- package/dist/events.d.mts +1 -1
- package/dist/events.mjs +1 -1
- package/dist/{index-DnAm4mSL.d.mts → index-D_mcApox.d.mts} +44 -10
- package/dist/index.d.mts +48 -12
- package/dist/index.mjs +2 -2
- package/dist/main.mjs +6525 -9089
- package/dist/{mutation-test.cell-m9T-X2Qx.d.mts → mutation-test.cell-Dp6QiuRg.d.mts} +14 -6
- package/dist/parser.wasm32-wasi.wasm +0 -0
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{src-Bu4i-Lt2.mjs → src-CMHnl87m.mjs} +465 -613
- package/dist/{src-js-DRK8boNV.mjs → src-js-CvBdbRpe.mjs} +129 -56
- package/dist/{wasm-Dg4JcQ2d.mjs → wasm-klkEDrvQ.mjs} +4545 -4335
- package/package.json +22 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js
|
|
2
2
|
|
|
3
|
+
## 10.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Effect moves to `4.0.0-rc.116` (with `@effect/platform-node`, `@effect/platform-node-shared`, `@effect/vitest` and `@effect/opentelemetry` on the same release), the `@systemfsoftware/*` toolchain pins move to their current releases, and `vitest` 5 with `oxc-parser` 0.150 come along. Both worker bundles (`stryker-js-typescript-checker`, `stryker-js-vitest-runner`) now inline their whole runtime rather than resolving `effect`, `@effect/*` and the sibling packages from the host's tree, so a worker runs on its own copy of the effect that built it; the project's `typescript` and `vitest` remain the only imports beside Node builtins. The filter-level `arbitrary.candidate` generators that the thresholds schemas carried are gone: v4 no longer reads them, so thresholds still reject a `low` above `high` and the property tests generate the pair from the schema again. Log calls inside `Effect.catch*` handlers moved to `Effect.tapError`/`Effect.tapCause` at the same level and message. `@systemfsoftware/stryker-ignorer-interface` re-exports the 0.150 AST, where `FormalParameterRest.decorators` is now `Array<Decorator>`.
|
|
8
|
+
|
|
3
9
|
## 10.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -6,11 +6,11 @@ import * as Option from "effect/Option";
|
|
|
6
6
|
import * as S from "effect/Schema";
|
|
7
7
|
import * as Predicate from "effect/Predicate";
|
|
8
8
|
import * as Arr from "effect/Array";
|
|
9
|
-
import { Effect, Schema } from "effect";
|
|
9
|
+
import { Effect, Schema, SchemaGetter, SchemaTransformation } from "effect";
|
|
10
10
|
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
11
11
|
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
12
12
|
import * as RpcMiddleware from "effect/unstable/rpc/RpcMiddleware";
|
|
13
|
-
//#region ../../node_modules/.pnpm/oxc-walker@1.1.1_@oxc-project+types@0.
|
|
13
|
+
//#region ../../node_modules/.pnpm/oxc-walker@1.1.1_@oxc-project+types@0.150.0_oxc-parser@0.150.0_rolldown@1.2.8/node_modules/oxc-walker/dist/index.mjs
|
|
14
14
|
function isNode(v) {
|
|
15
15
|
return v !== null && typeof v === "object" && typeof v.type === "string";
|
|
16
16
|
}
|
|
@@ -3204,7 +3204,7 @@ const writeElement = (container, index, replacement) => {
|
|
|
3204
3204
|
};
|
|
3205
3205
|
let oxc;
|
|
3206
3206
|
const loadOxc = Effect$1.gen(function* () {
|
|
3207
|
-
if (oxc === void 0) oxc = yield* Effect$1.promise(() => import("./src-js-
|
|
3207
|
+
if (oxc === void 0) oxc = yield* Effect$1.promise(() => import("./src-js-CvBdbRpe.mjs"));
|
|
3208
3208
|
return oxc;
|
|
3209
3209
|
});
|
|
3210
3210
|
var ParseFailed = class extends S.TaggedError("@systemfsoftware/stryker-js-instrumenter/Parser.schema/ParseFailed")("ParseFailed", {
|
|
@@ -8027,24 +8027,30 @@ const TestFileSchema = S.Struct({
|
|
|
8027
8027
|
tests: S.Array(TestDefinitionSchema)
|
|
8028
8028
|
});
|
|
8029
8029
|
const TestFileDefinitionDictionarySchema = S.Record(S.String, TestFileSchema);
|
|
8030
|
-
const
|
|
8030
|
+
const ThresholdsValuesSchema = S.Struct({
|
|
8031
8031
|
high: Percentage,
|
|
8032
8032
|
low: Percentage
|
|
8033
|
-
})
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8033
|
+
});
|
|
8034
|
+
const isThresholds = (value) => S.is(ThresholdsValuesSchema)(value) && value.low <= value.high;
|
|
8035
|
+
/**
|
|
8036
|
+
* The pair is *built* ordered — a drawn pair is sorted — rather than drawn at
|
|
8037
|
+
* random and discarded until it happens to be ordered. The invariant lives on
|
|
8038
|
+
* the declaration because a filter over the pair cannot express `low <= high`
|
|
8039
|
+
* in the generation-constraint vocabulary, and only a declaration carries a
|
|
8040
|
+
* `toCodecArbitrary` derivation. `ThresholdsValuesSchema` stays the wire side, so
|
|
8041
|
+
* decoding keeps its field paths.
|
|
8042
|
+
*/
|
|
8043
|
+
const OrderedThresholds = S.declare(isThresholds, {
|
|
8044
|
+
message: "expected thresholds where low <= high",
|
|
8045
|
+
toCodecArbitrary: () => S.link()(ThresholdsValuesSchema, {
|
|
8046
|
+
decode: SchemaGetter.transform(({ high, low }) => ({
|
|
8047
|
+
high: Math.max(high, low),
|
|
8048
|
+
low: Math.min(high, low)
|
|
8049
|
+
})),
|
|
8050
|
+
encode: SchemaGetter.transform((thresholds) => thresholds)
|
|
8051
|
+
})
|
|
8052
|
+
});
|
|
8053
|
+
const ThresholdsSchema = ThresholdsValuesSchema.pipe(S.decodeTo(OrderedThresholds, SchemaTransformation.passthrough()));
|
|
8048
8054
|
const BrandingInformationSchema = S.Struct({
|
|
8049
8055
|
homepageUrl: S.String,
|
|
8050
8056
|
imageUrl: S.optional(S.String)
|
|
@@ -8377,30 +8383,32 @@ const ClearTextReporterOptions = openStruct({
|
|
|
8377
8383
|
});
|
|
8378
8384
|
const HtmlReporterOptions = S.Struct({ fileName: defaulted(S.String, "reports/mutation/mutation.html") });
|
|
8379
8385
|
const JsonReporterOptions = S.Struct({ fileName: defaulted(S.String, "reports/mutation/mutation.json") });
|
|
8380
|
-
const
|
|
8386
|
+
const MutationScoreThresholdsValuesSchema = S.Struct({
|
|
8381
8387
|
high: defaulted(Percentage, 80),
|
|
8382
8388
|
low: defaulted(Percentage, 60),
|
|
8383
8389
|
break: defaulted(S.NullOr(Percentage), null)
|
|
8384
|
-
})
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
})
|
|
8390
|
+
});
|
|
8391
|
+
const isMutationScoreThresholds = (value) => S.is(MutationScoreThresholdsValuesSchema)(value) && value.low <= value.high;
|
|
8392
|
+
/**
|
|
8393
|
+
* The pair is *built* ordered — a drawn pair is sorted — rather than drawn at
|
|
8394
|
+
* random and discarded until it happens to be ordered. The invariant lives on
|
|
8395
|
+
* the declaration because a filter over the pair cannot express `low <= high`
|
|
8396
|
+
* in the generation-constraint vocabulary, and only a declaration carries a
|
|
8397
|
+
* `toCodecArbitrary` derivation. The struct stays the wire side, so decoding
|
|
8398
|
+
* keeps member defaults and field paths.
|
|
8399
|
+
*/
|
|
8400
|
+
const OrderedMutationScoreThresholds = S.declare(isMutationScoreThresholds, {
|
|
8401
|
+
message: "expected thresholds where low <= high",
|
|
8402
|
+
toCodecArbitrary: () => S.link()(MutationScoreThresholdsValuesSchema, {
|
|
8403
|
+
decode: SchemaGetter.transform(({ break: breaking, high, low }) => ({
|
|
8404
|
+
break: breaking,
|
|
8405
|
+
high: Math.max(high, low),
|
|
8406
|
+
low: Math.min(high, low)
|
|
8407
|
+
})),
|
|
8408
|
+
encode: SchemaGetter.transform((thresholds) => thresholds)
|
|
8409
|
+
})
|
|
8410
|
+
});
|
|
8411
|
+
const MutationScoreThresholdsSchema = MutationScoreThresholdsValuesSchema.pipe(S.decodeTo(OrderedMutationScoreThresholds, SchemaTransformation.passthrough()));
|
|
8404
8412
|
const MutatorDescriptor = S.Struct({ excludedMutations: defaulted(S.Array(S.String), []) });
|
|
8405
8413
|
const WarningOptions = openStruct({
|
|
8406
8414
|
unknownOptions: defaulted(S.Boolean, true),
|
|
@@ -8607,30 +8615,32 @@ var Heartbeat = class extends S.TaggedClass()("tick", {
|
|
|
8607
8615
|
completed: NonNegativeInt,
|
|
8608
8616
|
total: S.NullOr(NonNegativeInt)
|
|
8609
8617
|
}) {};
|
|
8610
|
-
const
|
|
8618
|
+
const VerdictThresholdsValuesSchema = S.Struct({
|
|
8611
8619
|
high: Percentage,
|
|
8612
8620
|
low: Percentage,
|
|
8613
8621
|
break: S.NullOr(Percentage)
|
|
8614
|
-
})
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
})
|
|
8622
|
+
});
|
|
8623
|
+
const isVerdictThresholds = (value) => S.is(VerdictThresholdsValuesSchema)(value) && value.low <= value.high;
|
|
8624
|
+
/**
|
|
8625
|
+
* The pair is *built* ordered — a drawn pair is sorted — rather than drawn at
|
|
8626
|
+
* random and discarded until it happens to be ordered. The invariant lives on
|
|
8627
|
+
* the declaration because a filter over the pair cannot express `low <= high`
|
|
8628
|
+
* in the generation-constraint vocabulary, and only a declaration carries a
|
|
8629
|
+
* `toCodecArbitrary` derivation. The struct stays the wire side, so decoding
|
|
8630
|
+
* keeps its field paths.
|
|
8631
|
+
*/
|
|
8632
|
+
const OrderedVerdictThresholds = S.declare(isVerdictThresholds, {
|
|
8633
|
+
message: "expected thresholds where low <= high",
|
|
8634
|
+
toCodecArbitrary: () => S.link()(VerdictThresholdsValuesSchema, {
|
|
8635
|
+
decode: SchemaGetter.transform(({ break: breaking, high, low }) => ({
|
|
8636
|
+
break: breaking,
|
|
8637
|
+
high: Math.max(high, low),
|
|
8638
|
+
low: Math.min(high, low)
|
|
8639
|
+
})),
|
|
8640
|
+
encode: SchemaGetter.transform((thresholds) => thresholds)
|
|
8641
|
+
})
|
|
8642
|
+
});
|
|
8643
|
+
const VerdictThresholds = VerdictThresholdsValuesSchema.pipe(S.decodeTo(OrderedVerdictThresholds, SchemaTransformation.passthrough()));
|
|
8634
8644
|
const VerdictMutant = S.Struct({
|
|
8635
8645
|
id: S.String,
|
|
8636
8646
|
file: S.String,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Metrics, _ as ExitClass } from "./index-
|
|
1
|
+
import { C as Metrics, _ as ExitClass } from "./index-D_mcApox.mjs";
|
|
2
2
|
import * as S from "effect/Schema";
|
|
3
3
|
//#region src/RunEvent.schema.d.ts
|
|
4
4
|
declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
@@ -49,12 +49,12 @@ declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
|
|
|
49
49
|
readonly total: S.NullOr<S.Int>;
|
|
50
50
|
}>, {}>;
|
|
51
51
|
declare class Heartbeat extends Heartbeat_base {}
|
|
52
|
-
declare const
|
|
52
|
+
declare const VerdictThresholdsValuesSchema: S.Struct<{
|
|
53
53
|
readonly high: S.Finite;
|
|
54
54
|
readonly low: S.Finite;
|
|
55
55
|
readonly break: S.NullOr<S.Finite>;
|
|
56
56
|
}>;
|
|
57
|
-
type VerdictThresholds = typeof
|
|
57
|
+
type VerdictThresholds = typeof VerdictThresholdsValuesSchema.Type;
|
|
58
58
|
declare const VerdictMutant: S.Struct<{
|
|
59
59
|
readonly id: S.String;
|
|
60
60
|
readonly file: S.String;
|
|
@@ -80,11 +80,19 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
|
|
|
80
80
|
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
81
81
|
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
82
82
|
readonly score: S.NullOr<S.Finite>;
|
|
83
|
-
readonly thresholds: S.
|
|
83
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
84
|
+
readonly high: number;
|
|
85
|
+
readonly low: number;
|
|
86
|
+
readonly break: number | null;
|
|
87
|
+
}, {
|
|
88
|
+
readonly high: number;
|
|
89
|
+
readonly low: number;
|
|
90
|
+
readonly break: number | null;
|
|
91
|
+
}>, S.Struct<{
|
|
84
92
|
readonly high: S.Finite;
|
|
85
93
|
readonly low: S.Finite;
|
|
86
94
|
readonly break: S.NullOr<S.Finite>;
|
|
87
|
-
}>;
|
|
95
|
+
}>, never, never>;
|
|
88
96
|
readonly reportFile: S.NullOr<S.String>;
|
|
89
97
|
readonly counts: typeof Metrics;
|
|
90
98
|
readonly mutants: S.$Array<S.Struct<{
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as StrykerOptions, P as PartialStrykerOptions } from "./index-
|
|
1
|
+
import { K as StrykerOptions, P as PartialStrykerOptions } from "./index-D_mcApox.mjs";
|
|
2
2
|
import { n as OutputMode } from "./output-mode-CfGHDpi5.mjs";
|
|
3
3
|
//#region src/config/stryker-config.d.ts
|
|
4
4
|
interface ConfigEnv {
|
package/dist/events.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as VerdictThresholds, _ as RunStarted, a as ModeSignal, b as VerdictMutant, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, x as VerdictReached, y as VerdictCounts } from "./Run.schema-
|
|
1
|
+
import { S as VerdictThresholds, _ as RunStarted, a as ModeSignal, b as VerdictMutant, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, x as VerdictReached, y as VerdictCounts } from "./Run.schema-t292QQGe.mjs";
|
|
2
2
|
export { Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, StageError, type VerdictCounts, type VerdictMutant, VerdictReached, type VerdictThresholds };
|
package/dist/events.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as RunStarted, a as ModeSignal, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, v as VerdictReached } from "./Run.schema-
|
|
1
|
+
import { _ as RunStarted, a as ModeSignal, c as PhaseEntered, d as RunDecodeError, f as RunEvent, g as RunReadError, h as RunPhase, i as HelpRendered, l as PlanKnown, m as RunMutantTested, n as StageError, o as MutationRunPlan, p as RunFailed, r as Heartbeat, s as OutputMode, t as PrepareError, u as PlanMutationRunCommand, v as VerdictReached } from "./Run.schema-CgVfoOfk.mjs";
|
|
2
2
|
export { Heartbeat, HelpRendered, ModeSignal, MutationRunPlan, OutputMode, PhaseEntered, PlanKnown, PlanMutationRunCommand, PrepareError, RunDecodeError, RunEvent, RunFailed, RunMutantTested, RunPhase, RunReadError, RunStarted, StageError, VerdictReached };
|
|
@@ -637,11 +637,19 @@ declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTes
|
|
|
637
637
|
readonly total: S.Int;
|
|
638
638
|
}>, {}>;
|
|
639
639
|
declare type MutationScoreThresholds = typeof MutationScoreThresholdsSchema.Type;
|
|
640
|
-
declare const MutationScoreThresholdsSchema: S.
|
|
640
|
+
declare const MutationScoreThresholdsSchema: S.decodeTo<S.declare<{
|
|
641
|
+
readonly high: number;
|
|
642
|
+
readonly low: number;
|
|
643
|
+
readonly break: number | null;
|
|
644
|
+
}, {
|
|
645
|
+
readonly high: number;
|
|
646
|
+
readonly low: number;
|
|
647
|
+
readonly break: number | null;
|
|
648
|
+
}>, S.Struct<{
|
|
641
649
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
642
650
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
643
651
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
644
|
-
}>;
|
|
652
|
+
}>, never, never>;
|
|
645
653
|
declare class MutationTestingPlanReady extends MutationTestingPlanReady_base {}
|
|
646
654
|
declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
|
|
647
655
|
readonly total: S.Int;
|
|
@@ -683,10 +691,16 @@ declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.T
|
|
|
683
691
|
readonly duration: S.optional<S.Finite>;
|
|
684
692
|
}>>;
|
|
685
693
|
}>>;
|
|
686
|
-
readonly thresholds: S.
|
|
694
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
695
|
+
readonly high: number;
|
|
696
|
+
readonly low: number;
|
|
697
|
+
}, {
|
|
698
|
+
readonly high: number;
|
|
699
|
+
readonly low: number;
|
|
700
|
+
}>, S.Struct<{
|
|
687
701
|
readonly high: S.Finite;
|
|
688
702
|
readonly low: S.Finite;
|
|
689
|
-
}>;
|
|
703
|
+
}>, never, never>;
|
|
690
704
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
691
705
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
692
706
|
readonly source: S.optional<S.String>;
|
|
@@ -748,10 +762,16 @@ declare const MutationTestResultSchema: S.Struct<{
|
|
|
748
762
|
readonly duration: S.optional<S.Finite>;
|
|
749
763
|
}>>;
|
|
750
764
|
}>>;
|
|
751
|
-
readonly thresholds: S.
|
|
765
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
766
|
+
readonly high: number;
|
|
767
|
+
readonly low: number;
|
|
768
|
+
}, {
|
|
769
|
+
readonly high: number;
|
|
770
|
+
readonly low: number;
|
|
771
|
+
}>, S.Struct<{
|
|
752
772
|
readonly high: S.Finite;
|
|
753
773
|
readonly low: S.Finite;
|
|
754
|
-
}>;
|
|
774
|
+
}>, never, never>;
|
|
755
775
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
756
776
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
757
777
|
readonly source: S.optional<S.String>;
|
|
@@ -944,11 +964,19 @@ declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
944
964
|
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
945
965
|
}>]>, never>;
|
|
946
966
|
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
947
|
-
readonly thresholds: S.withDecodingDefaultKey<S.
|
|
967
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
968
|
+
readonly high: number;
|
|
969
|
+
readonly low: number;
|
|
970
|
+
readonly break: number | null;
|
|
971
|
+
}, {
|
|
972
|
+
readonly high: number;
|
|
973
|
+
readonly low: number;
|
|
974
|
+
readonly break: number | null;
|
|
975
|
+
}>, S.Struct<{
|
|
948
976
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
949
977
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
950
978
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
951
|
-
}>, never>;
|
|
979
|
+
}>, never, never>, never>;
|
|
952
980
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
953
981
|
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
954
982
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
@@ -1130,10 +1158,16 @@ declare interface TestRunnerService {
|
|
|
1130
1158
|
declare const TestStatus: S.Literals<readonly ["success", "failed", "skipped"]>;
|
|
1131
1159
|
declare type TestStatus = typeof TestStatus.Type;
|
|
1132
1160
|
declare type Thresholds = typeof ThresholdsSchema.Type;
|
|
1133
|
-
declare const ThresholdsSchema: S.
|
|
1161
|
+
declare const ThresholdsSchema: S.decodeTo<S.declare<{
|
|
1162
|
+
readonly high: number;
|
|
1163
|
+
readonly low: number;
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly high: number;
|
|
1166
|
+
readonly low: number;
|
|
1167
|
+
}>, S.Struct<{
|
|
1134
1168
|
readonly high: S.Finite;
|
|
1135
1169
|
readonly low: S.Finite;
|
|
1136
|
-
}>;
|
|
1170
|
+
}>, never, never>;
|
|
1137
1171
|
declare interface TimeoutDryRunResult {
|
|
1138
1172
|
readonly status: 'timeout';
|
|
1139
1173
|
readonly reason?: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -712,7 +712,7 @@ declare interface ExportSpecifier extends Span$1 {
|
|
|
712
712
|
parent?: Node$1;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
declare type Expression$1 = BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | IdentifierReference$1 |
|
|
715
|
+
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;
|
|
716
716
|
|
|
717
717
|
declare interface ExpressionStatement$1 extends Span$1 {
|
|
718
718
|
type: "ExpressionStatement";
|
|
@@ -901,11 +901,19 @@ export declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
901
901
|
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
902
902
|
}>]>, never>;
|
|
903
903
|
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
904
|
-
readonly thresholds: S.withDecodingDefaultKey<S.
|
|
904
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
905
|
+
readonly high: number;
|
|
906
|
+
readonly low: number;
|
|
907
|
+
readonly break: number | null;
|
|
908
|
+
}, {
|
|
909
|
+
readonly high: number;
|
|
910
|
+
readonly low: number;
|
|
911
|
+
readonly break: number | null;
|
|
912
|
+
}>, S.Struct<{
|
|
905
913
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
906
914
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
907
915
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
908
|
-
}>, never>;
|
|
916
|
+
}>, never, never>, never>;
|
|
909
917
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
910
918
|
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
911
919
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
@@ -931,7 +939,7 @@ declare type FormalParameter = {
|
|
|
931
939
|
declare interface FormalParameterRest extends Span$1 {
|
|
932
940
|
type: "RestElement";
|
|
933
941
|
argument: BindingPattern$1;
|
|
934
|
-
decorators?:
|
|
942
|
+
decorators?: Array<Decorator$1>;
|
|
935
943
|
optional?: boolean;
|
|
936
944
|
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
937
945
|
value?: null;
|
|
@@ -1630,10 +1638,16 @@ declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.T
|
|
|
1630
1638
|
readonly duration: S.optional<S.Finite>;
|
|
1631
1639
|
}>>;
|
|
1632
1640
|
}>>;
|
|
1633
|
-
readonly thresholds: S.
|
|
1641
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
1642
|
+
readonly high: number;
|
|
1643
|
+
readonly low: number;
|
|
1644
|
+
}, {
|
|
1645
|
+
readonly high: number;
|
|
1646
|
+
readonly low: number;
|
|
1647
|
+
}>, S.Struct<{
|
|
1634
1648
|
readonly high: S.Finite;
|
|
1635
1649
|
readonly low: S.Finite;
|
|
1636
|
-
}>;
|
|
1650
|
+
}>, never, never>;
|
|
1637
1651
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1638
1652
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
1639
1653
|
readonly source: S.optional<S.String>;
|
|
@@ -1697,10 +1711,16 @@ export declare const MutationTestResultSchema: S.Struct<{
|
|
|
1697
1711
|
readonly duration: S.optional<S.Finite>;
|
|
1698
1712
|
}>>;
|
|
1699
1713
|
}>>;
|
|
1700
|
-
readonly thresholds: S.
|
|
1714
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
1715
|
+
readonly high: number;
|
|
1716
|
+
readonly low: number;
|
|
1717
|
+
}, {
|
|
1718
|
+
readonly high: number;
|
|
1719
|
+
readonly low: number;
|
|
1720
|
+
}>, S.Struct<{
|
|
1701
1721
|
readonly high: S.Finite;
|
|
1702
1722
|
readonly low: S.Finite;
|
|
1703
|
-
}>;
|
|
1723
|
+
}>, never, never>;
|
|
1704
1724
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1705
1725
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
1706
1726
|
readonly source: S.optional<S.String>;
|
|
@@ -2353,11 +2373,19 @@ export declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
2353
2373
|
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
2354
2374
|
}>]>, never>;
|
|
2355
2375
|
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
2356
|
-
readonly thresholds: S.withDecodingDefaultKey<S.
|
|
2376
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
2377
|
+
readonly high: number;
|
|
2378
|
+
readonly low: number;
|
|
2379
|
+
readonly break: number | null;
|
|
2380
|
+
}, {
|
|
2381
|
+
readonly high: number;
|
|
2382
|
+
readonly low: number;
|
|
2383
|
+
readonly break: number | null;
|
|
2384
|
+
}>, S.Struct<{
|
|
2357
2385
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2358
2386
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2359
2387
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
2360
|
-
}>, never>;
|
|
2388
|
+
}>, never, never>, never>;
|
|
2361
2389
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2362
2390
|
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2363
2391
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
@@ -3150,11 +3178,19 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
|
|
|
3150
3178
|
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
3151
3179
|
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
3152
3180
|
readonly score: S.NullOr<S.Finite>;
|
|
3153
|
-
readonly thresholds: S.
|
|
3181
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
3182
|
+
readonly high: number;
|
|
3183
|
+
readonly low: number;
|
|
3184
|
+
readonly break: number | null;
|
|
3185
|
+
}, {
|
|
3186
|
+
readonly high: number;
|
|
3187
|
+
readonly low: number;
|
|
3188
|
+
readonly break: number | null;
|
|
3189
|
+
}>, S.Struct<{
|
|
3154
3190
|
readonly high: S.Finite;
|
|
3155
3191
|
readonly low: S.Finite;
|
|
3156
3192
|
readonly break: S.NullOr<S.Finite>;
|
|
3157
|
-
}>;
|
|
3193
|
+
}>, never, never>;
|
|
3158
3194
|
readonly reportFile: S.NullOr<S.String>;
|
|
3159
3195
|
readonly counts: typeof Metrics;
|
|
3160
3196
|
readonly mutants: S.$Array<S.Struct<{
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as WorkerPluginKind, A as MetricsSchema, B as ReporterEventBatch, C as CheckerRequest, D as FileResultSchema, E as ExitClass, F as MutationTestingPlanReady, H as ReporterInitOptions, M as MutantTested, N as MutationTestReportReady, P as MutationTestResultSchema, R as ReporterAck, S as CheckerMutantWire, T as DryRunCompleted, U as ReporterRpcs, W as StrykerOptionsSchema, X as TraceContextMiddleware, _ as RunStarted, at as LocationSchema, b as CheckerFailed, c as PhaseEntered, ct as MutantStatusSchema, h as RunPhase, i as HelpRendered, j as MutantResultSchema, l as PlanKnown, lt as PositionSchema, m as RunMutantTested, n as StageError, p as RunFailed, q as TestRunnerConfigSchema, r as Heartbeat, st as MutantActivationSchema, v as VerdictReached, w as CheckerRpcs, x as CheckerGroupResult, y as CheckerCheckResult, z as ReporterDrained } from "./Run.schema-
|
|
2
|
-
import { $ as validateOptions, A as strykerVersion, At as MergeResult, B as optionsPath, C as checkerMutantsSkipped, Ct as ExtendsStepDone, D as CheckerSkippedRequested, Dt as ExtendsStepStateSchema, E as CheckerAnsweredUnrequested, Et as ExtendsStepResolve, F as deepFreeze, Ft as toRelativeNormalizedFileName, G as decideExtendsStep, H as REPORTER_EVENT_BATCH_BOUND, I as defaultOptions, It as RunEvents, J as importModule, K as describeErrors, L as findUnserializables, Lt as RunIdentity, M as CONFIG_SYNTAX_HELP, Mt as extendsPropertySchema, N as SUPPORTED_CONFIG_FILE_NAMES, Nt as forkOptionsSchema, O as createFileMatcher, Ot as ImportedModuleSchema, P as createDefaultOptions, Pt as survivorsPriorReport, Q as readConfig, R as isModuleSpecifier, Rt as RunEventWireLine, S as checkerMutantsChecked, St as ExtendsStepDocumentSchema, T as checkerRpcFailures, Tt as ExtendsStepRefused, U as reporterWorkerFactory, V as RunEnvironment, W as spawnReporterWorker, X as loadConfigCell, Y as initialExtendsStepState, Z as mergeConfigs, _ as verdictExitClass, _t as ConfigError, a as RUN_EVENTS_QUEUE_BOUND, at as IdGenerator, b as checkGroupedPlans, bt as ConfigFileUnreadableError, c as shouldKeepTempDir, ct as OutOfMemoryError, d as buildVerdictEnvelope, dt as isVmRunner, et as buildTestRunner, f as generateRunId, ft as vmRunnerCapabilities, g as resolveExitCode, gt as ConfigDocumentSchema, h as highestExitClass, ht as StrykerError, i as makeRunEventStream, it as makeWorkerClient, j as IncrementalReportSchema, jt as ReadConfigCommand, k as matchesFile, kt as MergeCommand, l as ACTIONABLE_STATUSES, lt as WorkerBootTimeoutError, m as EXIT_CODE, mt as vmTestRunner, n as RunEventDrain, nt as WorkerLauncher, o as makeRunLayer, ot as classifyWorkerExit, p as isActionableStatus, pt as vmRunnerName, q as forkCoreSchema, r as RunEventDrainLive, rt as connectRetry, s as mutationTestCell, st as ChildProcessCrashedError, t as strykerCell, tt as isCommandRunner, u as VERDICT_ENVELOPE_SCHEMA_VERSION, ut as VmRunner, v as calculateMetrics, vt as ConfigFileInvalidError, w as checkerProcessCrashes, wt as ExtendsStepRead, x as checkerDuration, xt as ConfigFileUnsupportedError, y as countMutants, yt as ConfigFileNotFoundError, z as isWarningEnabled, zt as S } from "./src-
|
|
1
|
+
import { $ as WorkerPluginKind, A as MetricsSchema, B as ReporterEventBatch, C as CheckerRequest, D as FileResultSchema, E as ExitClass, F as MutationTestingPlanReady, H as ReporterInitOptions, M as MutantTested, N as MutationTestReportReady, P as MutationTestResultSchema, R as ReporterAck, S as CheckerMutantWire, T as DryRunCompleted, U as ReporterRpcs, W as StrykerOptionsSchema, X as TraceContextMiddleware, _ as RunStarted, at as LocationSchema, b as CheckerFailed, c as PhaseEntered, ct as MutantStatusSchema, h as RunPhase, i as HelpRendered, j as MutantResultSchema, l as PlanKnown, lt as PositionSchema, m as RunMutantTested, n as StageError, p as RunFailed, q as TestRunnerConfigSchema, r as Heartbeat, st as MutantActivationSchema, v as VerdictReached, w as CheckerRpcs, x as CheckerGroupResult, y as CheckerCheckResult, z as ReporterDrained } from "./Run.schema-CgVfoOfk.mjs";
|
|
2
|
+
import { $ as validateOptions, A as strykerVersion, At as MergeResult, B as optionsPath, C as checkerMutantsSkipped, Ct as ExtendsStepDone, D as CheckerSkippedRequested, Dt as ExtendsStepStateSchema, E as CheckerAnsweredUnrequested, Et as ExtendsStepResolve, F as deepFreeze, Ft as toRelativeNormalizedFileName, G as decideExtendsStep, H as REPORTER_EVENT_BATCH_BOUND, I as defaultOptions, It as RunEvents, J as importModule, K as describeErrors, L as findUnserializables, Lt as RunIdentity, M as CONFIG_SYNTAX_HELP, Mt as extendsPropertySchema, N as SUPPORTED_CONFIG_FILE_NAMES, Nt as forkOptionsSchema, O as createFileMatcher, Ot as ImportedModuleSchema, P as createDefaultOptions, Pt as survivorsPriorReport, Q as readConfig, R as isModuleSpecifier, Rt as RunEventWireLine, S as checkerMutantsChecked, St as ExtendsStepDocumentSchema, T as checkerRpcFailures, Tt as ExtendsStepRefused, U as reporterWorkerFactory, V as RunEnvironment, W as spawnReporterWorker, X as loadConfigCell, Y as initialExtendsStepState, Z as mergeConfigs, _ as verdictExitClass, _t as ConfigError, a as RUN_EVENTS_QUEUE_BOUND, at as IdGenerator, b as checkGroupedPlans, bt as ConfigFileUnreadableError, c as shouldKeepTempDir, ct as OutOfMemoryError, d as buildVerdictEnvelope, dt as isVmRunner, et as buildTestRunner, f as generateRunId, ft as vmRunnerCapabilities, g as resolveExitCode, gt as ConfigDocumentSchema, h as highestExitClass, ht as StrykerError, i as makeRunEventStream, it as makeWorkerClient, j as IncrementalReportSchema, jt as ReadConfigCommand, k as matchesFile, kt as MergeCommand, l as ACTIONABLE_STATUSES, lt as WorkerBootTimeoutError, m as EXIT_CODE, mt as vmTestRunner, n as RunEventDrain, nt as WorkerLauncher, o as makeRunLayer, ot as classifyWorkerExit, p as isActionableStatus, pt as vmRunnerName, q as forkCoreSchema, r as RunEventDrainLive, rt as connectRetry, s as mutationTestCell, st as ChildProcessCrashedError, t as strykerCell, tt as isCommandRunner, u as VERDICT_ENVELOPE_SCHEMA_VERSION, ut as VmRunner, v as calculateMetrics, vt as ConfigFileInvalidError, w as checkerProcessCrashes, wt as ExtendsStepRead, x as checkerDuration, xt as ConfigFileUnsupportedError, y as countMutants, yt as ConfigFileNotFoundError, z as isWarningEnabled, zt as S } from "./src-CMHnl87m.mjs";
|
|
3
3
|
export { ACTIONABLE_STATUSES, CONFIG_SYNTAX_HELP, CheckerAnsweredUnrequested, CheckerCheckResult, CheckerFailed, CheckerGroupResult, CheckerMutantWire, CheckerRequest, CheckerRpcs, CheckerSkippedRequested, ChildProcessCrashedError, ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, DryRunCompleted, EXIT_CODE, ExitClass, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepStateSchema, FileResultSchema, Heartbeat, HelpRendered, IdGenerator, ImportedModuleSchema, IncrementalReportSchema, LocationSchema, MergeCommand, MergeResult, MetricsSchema, MutantActivationSchema, MutantResultSchema, MutantStatusSchema, MutantTested, MutationTestReportReady, MutationTestResultSchema, MutationTestingPlanReady, OutOfMemoryError, PhaseEntered, PlanKnown, PositionSchema, REPORTER_EVENT_BATCH_BOUND, RUN_EVENTS_QUEUE_BOUND, ReadConfigCommand, ReporterAck, ReporterDrained, ReporterEventBatch, ReporterInitOptions, ReporterRpcs, RunEnvironment, RunEventDrain, RunEventDrainLive, RunEventWireLine, RunEvents, RunFailed, RunIdentity, RunMutantTested, RunPhase, RunStarted, S, SUPPORTED_CONFIG_FILE_NAMES, StageError, StrykerError, StrykerOptionsSchema, TestRunnerConfigSchema, TraceContextMiddleware, VERDICT_ENVELOPE_SCHEMA_VERSION, VerdictReached, VmRunner, WorkerBootTimeoutError, WorkerLauncher, WorkerPluginKind, buildTestRunner, buildVerdictEnvelope, calculateMetrics, checkGroupedPlans, checkerDuration, checkerMutantsChecked, checkerMutantsSkipped, checkerProcessCrashes, checkerRpcFailures, classifyWorkerExit, connectRetry, countMutants, createDefaultOptions, createFileMatcher, decideExtendsStep, deepFreeze, defaultOptions, describeErrors, extendsPropertySchema, findUnserializables, forkCoreSchema, forkOptionsSchema, generateRunId, highestExitClass, importModule, initialExtendsStepState, isActionableStatus, isCommandRunner, isModuleSpecifier, isVmRunner, isWarningEnabled, loadConfigCell, makeRunEventStream, makeRunLayer, makeWorkerClient, matchesFile, mergeConfigs, mutationTestCell, optionsPath, readConfig, reporterWorkerFactory, resolveExitCode, shouldKeepTempDir, spawnReporterWorker, strykerCell, strykerVersion, survivorsPriorReport, toRelativeNormalizedFileName, validateOptions, verdictExitClass, vmRunnerCapabilities, vmRunnerName, vmTestRunner };
|