@systemfsoftware/stryker-js-vitest-runner 10.1.1 → 10.1.2
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 +4 -0
- package/dist/worker.mjs +119 -43
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @systemfsoftware/stryker-js-vitest-runner
|
|
2
2
|
|
|
3
|
+
## 10.1.2
|
|
4
|
+
|
|
5
|
+
Bundles the plugin interface whose reporter counts and durations are bounded, so a reporter sum can no longer overflow to Infinity.
|
|
6
|
+
|
|
3
7
|
## 10.1.1
|
|
4
8
|
|
|
5
9
|
The workspace dogfoods @systemfsoftware/stryker-js 23.0.0 and the TypeScript checker 10.0.0, and every package resolves one @systemfsoftware/effect-cell-types (12.1.4). The TypeScript checker and the vitest runner bundle 12.1.4 in place of 12.0.0, and stryker-js and the checker bundle @jsr/std__jsonc 1.0.3 in place of 1.0.2. Every package that takes @systemfsoftware/effect-cell-types from the catalog publishes the range ^12.1.4 in place of ^12.0.0.
|
package/dist/worker.mjs
CHANGED
|
@@ -53083,7 +53083,7 @@ const Mutant = TaggedStruct("Mutant", {
|
|
|
53083
53083
|
statusReason: optional(String$2),
|
|
53084
53084
|
coveredBy: String$2.pipe(ArraySchema, optional),
|
|
53085
53085
|
static: optional(Boolean$3),
|
|
53086
|
-
testsCompleted: optional(
|
|
53086
|
+
testsCompleted: optional(Natural),
|
|
53087
53087
|
description: optional(String$2),
|
|
53088
53088
|
subsumption: optional(Subsumption),
|
|
53089
53089
|
probeEligibility: ProbeEligibility.pipe(withConstructorDefault(succeed$4(NOT_DECIDED)), withDecodingDefaultKey(succeed$4(NOT_DECIDED)))
|
|
@@ -53806,7 +53806,7 @@ const MutantResult = StructWithRest(Struct({
|
|
|
53806
53806
|
"description": "Result of the mutation."
|
|
53807
53807
|
}),
|
|
53808
53808
|
"statusReason": optionalKey(String$2.annotate({ "description": "The reason that this mutant has this status. In the case of a killed mutant, this should be filled with the failure message(s) of the failing tests. In case of an error mutant, this should be filled with the error message." })),
|
|
53809
|
-
"testsCompleted": optionalKey(Finite.annotate({ "description": "The number of tests actually completed in order to test this mutant. Can differ from \"coveredBy\" because of bailing a mutant test run after first failing test." }).check(
|
|
53809
|
+
"testsCompleted": optionalKey(Finite.annotate({ "description": "The number of tests actually completed in order to test this mutant. Can differ from \"coveredBy\" because of bailing a mutant test run after first failing test." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })))
|
|
53810
53810
|
}), [Record$1(String$2, Json.annotate({ "expected": "JSON value" }))]).annotate({
|
|
53811
53811
|
"title": "MutantResult",
|
|
53812
53812
|
"description": "Single mutation.",
|
|
@@ -53996,14 +53996,15 @@ var TestRunnerFailed = class extends TaggedError()("TestRunnerFailed", {
|
|
|
53996
53996
|
return `Test runner "${this.runnerName}" failed during ${this.phase}: ${this.cause}`;
|
|
53997
53997
|
}
|
|
53998
53998
|
};
|
|
53999
|
+
const DurationMs = Finite.pipe(check$1(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(Number.MAX_SAFE_INTEGER)));
|
|
53999
54000
|
const RunTimingSchema = Struct({
|
|
54000
|
-
net:
|
|
54001
|
-
overhead:
|
|
54001
|
+
net: DurationMs,
|
|
54002
|
+
overhead: DurationMs
|
|
54002
54003
|
});
|
|
54003
54004
|
const ReporterPlanDescriptorSchema = Struct({
|
|
54004
54005
|
mutantId: MutantId,
|
|
54005
54006
|
plan: Literals(["EarlyResult", "Run"]),
|
|
54006
|
-
netTime:
|
|
54007
|
+
netTime: DurationMs,
|
|
54007
54008
|
reloadEnvironment: Boolean$3
|
|
54008
54009
|
});
|
|
54009
54010
|
var DryRunCompleted = class extends TaggedClass()("dryRunCompleted", {
|
|
@@ -54877,6 +54878,7 @@ const SpanName = String$2.check(isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z][
|
|
|
54877
54878
|
const SpanAttributeKey = String$2.check(isPattern(/^[A-Za-z][A-Za-z0-9_.-]*$/u, { expected: "an attribute key starting with a letter, such as \"stryker.checker.name\"" })).pipe(brand("SpanAttributeKey"));
|
|
54878
54879
|
const SpanAttributeText = String$2;
|
|
54879
54880
|
const SpanAttributeCount = Finite;
|
|
54881
|
+
const SpanAttributeCountWhenRecorded = optionalKey(SpanAttributeCount);
|
|
54880
54882
|
const SpanRunStatus = Literals([
|
|
54881
54883
|
"success",
|
|
54882
54884
|
"failure",
|
|
@@ -54884,6 +54886,24 @@ const SpanRunStatus = Literals([
|
|
|
54884
54886
|
"aborted",
|
|
54885
54887
|
"skipped"
|
|
54886
54888
|
]);
|
|
54889
|
+
const CompilerCheckAttributes = {
|
|
54890
|
+
"typescript.snapshot_updates.count": SpanAttributeCountWhenRecorded,
|
|
54891
|
+
"typescript.resplices.count": SpanAttributeCountWhenRecorded,
|
|
54892
|
+
"typescript.importer_shortcut.count": SpanAttributeCountWhenRecorded,
|
|
54893
|
+
"typescript.importer_shortcut.fallback.original.outside-function-body.count": SpanAttributeCountWhenRecorded,
|
|
54894
|
+
"typescript.importer_shortcut.fallback.original.body-dependent-signature.count": SpanAttributeCountWhenRecorded,
|
|
54895
|
+
"typescript.importer_shortcut.fallback.original.not-typescript-module.count": SpanAttributeCountWhenRecorded,
|
|
54896
|
+
"typescript.importer_shortcut.fallback.original.module-reference.count": SpanAttributeCountWhenRecorded,
|
|
54897
|
+
"typescript.importer_shortcut.fallback.original.syntax-error.count": SpanAttributeCountWhenRecorded,
|
|
54898
|
+
"typescript.importer_shortcut.fallback.original.shared-file.count": SpanAttributeCountWhenRecorded,
|
|
54899
|
+
"typescript.importer_shortcut.fallback.mutated.outside-function-body.count": SpanAttributeCountWhenRecorded,
|
|
54900
|
+
"typescript.importer_shortcut.fallback.mutated.body-dependent-signature.count": SpanAttributeCountWhenRecorded,
|
|
54901
|
+
"typescript.importer_shortcut.fallback.mutated.not-typescript-module.count": SpanAttributeCountWhenRecorded,
|
|
54902
|
+
"typescript.importer_shortcut.fallback.mutated.module-reference.count": SpanAttributeCountWhenRecorded,
|
|
54903
|
+
"typescript.importer_shortcut.fallback.mutated.syntax-error.count": SpanAttributeCountWhenRecorded,
|
|
54904
|
+
"typescript.importer_shortcut.fallback.mutated.shared-file.count": SpanAttributeCountWhenRecorded,
|
|
54905
|
+
"typescript.importer_shortcut.fallback.unread.count": SpanAttributeCountWhenRecorded
|
|
54906
|
+
};
|
|
54887
54907
|
const SpanDocument = Struct({
|
|
54888
54908
|
id: SpanName,
|
|
54889
54909
|
name: SpanName,
|
|
@@ -55048,7 +55068,7 @@ const Spans = {
|
|
|
55048
55068
|
},
|
|
55049
55069
|
htmlReportWrite: {
|
|
55050
55070
|
name: "html_report.write",
|
|
55051
|
-
attributes: {}
|
|
55071
|
+
attributes: { "stryker.html_report.file_name": SpanAttributeText }
|
|
55052
55072
|
},
|
|
55053
55073
|
htmlReportWriteBundleFromDisk: {
|
|
55054
55074
|
name: "html_report.write_bundle_from_disk",
|
|
@@ -55672,7 +55692,7 @@ const Spans = {
|
|
|
55672
55692
|
},
|
|
55673
55693
|
typescriptCheckerCompilerCheck: {
|
|
55674
55694
|
name: "typescript-checker.compiler.check",
|
|
55675
|
-
attributes:
|
|
55695
|
+
attributes: CompilerCheckAttributes
|
|
55676
55696
|
},
|
|
55677
55697
|
typescriptCheckerCompilerClose: {
|
|
55678
55698
|
name: "typescript-checker.compiler.close",
|
|
@@ -55850,7 +55870,7 @@ Literals([
|
|
|
55850
55870
|
"FinalizerEscape"
|
|
55851
55871
|
]);
|
|
55852
55872
|
//#endregion
|
|
55853
|
-
//#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.
|
|
55873
|
+
//#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.2.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
|
|
55854
55874
|
var __defProp$1 = Object.defineProperty;
|
|
55855
55875
|
var __exportAll$1 = (all, no_symbols) => {
|
|
55856
55876
|
let target = {};
|
|
@@ -55862,7 +55882,7 @@ var __exportAll$1 = (all, no_symbols) => {
|
|
|
55862
55882
|
return target;
|
|
55863
55883
|
};
|
|
55864
55884
|
//#endregion
|
|
55865
|
-
//#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.
|
|
55885
|
+
//#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.2.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
|
|
55866
55886
|
var Blueprint_exports = /* @__PURE__ */ __exportAll$1({
|
|
55867
55887
|
IndexId: () => IndexId,
|
|
55868
55888
|
make: () => make$3$1
|
|
@@ -56136,7 +56156,8 @@ const make$5 = (options) => {
|
|
|
56136
56156
|
var Sandwich_exports = /* @__PURE__ */ __exportAll$1({
|
|
56137
56157
|
CommandRejected: () => CommandRejected,
|
|
56138
56158
|
DEFAULT_DURATION_BOUNDARIES: () => DEFAULT_DURATION_BOUNDARIES,
|
|
56139
|
-
named: () => named
|
|
56159
|
+
named: () => named,
|
|
56160
|
+
writer: () => writer
|
|
56140
56161
|
});
|
|
56141
56162
|
/**
|
|
56142
56163
|
* The duration buckets a named cell records into by default, in seconds. These are the
|
|
@@ -56182,7 +56203,7 @@ const outcomeTag = (outcome) => match$4(outcome, {
|
|
|
56182
56203
|
const annotateCellIdentity = (name, stacktrace, decideStacktrace) => gen(function* () {
|
|
56183
56204
|
yield* annotateCurrentSpan("cell.name", name);
|
|
56184
56205
|
yield* annotateCurrentSpan("cell.stacktrace", stacktrace);
|
|
56185
|
-
yield* annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
|
|
56206
|
+
yield* decideStacktrace === void 0 ? void_$1 : annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
|
|
56186
56207
|
});
|
|
56187
56208
|
const annotateCommand = (schema, decoded) => gen(function* () {
|
|
56188
56209
|
const commandTag = tagIfPresent(decoded);
|
|
@@ -56306,6 +56327,61 @@ const namedImpl = (name, options) => {
|
|
|
56306
56327
|
* span is created, so an operational cell emits its trace because it was constructed.
|
|
56307
56328
|
*/
|
|
56308
56329
|
const named = dual((args) => typeof args[0] === "string", namedImpl);
|
|
56330
|
+
const writerImpl = (name, options) => {
|
|
56331
|
+
const histogram = histogramFor(name, options);
|
|
56332
|
+
return (read) => {
|
|
56333
|
+
const stacktrace = String((/* @__PURE__ */ new Error()).stack);
|
|
56334
|
+
const decode = (command) => {
|
|
56335
|
+
const write = (handlers) => {
|
|
56336
|
+
const onDecoded = handlers.Decoded;
|
|
56337
|
+
const decodedRun = (decoded, raw, settle) => gen(function* () {
|
|
56338
|
+
yield* annotateFields(command, decoded);
|
|
56339
|
+
yield* annotateCommand(command, decoded);
|
|
56340
|
+
yield* settle("success");
|
|
56341
|
+
return yield* withSpan(onDecoded(decoded, raw), `${name}.write`);
|
|
56342
|
+
});
|
|
56343
|
+
const run = (input) => monitoredRun(name, stacktrace, void 0, histogram, (settle) => gen(function* () {
|
|
56344
|
+
const raw = yield* withSpan(read(input), `${name}.read`);
|
|
56345
|
+
return yield* match$4(decodeUnknownResult(command)(raw), {
|
|
56346
|
+
onFailure: (issue) => rejectedRun(name, handlers, raw, issue.message, settle),
|
|
56347
|
+
onSuccess: (decoded) => decodedRun(decoded, raw, settle)
|
|
56348
|
+
});
|
|
56349
|
+
}));
|
|
56350
|
+
return {
|
|
56351
|
+
[CellTypeId]: CellTypeId,
|
|
56352
|
+
run,
|
|
56353
|
+
phases: Object.freeze([
|
|
56354
|
+
"read",
|
|
56355
|
+
"decode",
|
|
56356
|
+
"write"
|
|
56357
|
+
]),
|
|
56358
|
+
...Prototype$1
|
|
56359
|
+
};
|
|
56360
|
+
};
|
|
56361
|
+
return {
|
|
56362
|
+
"sentence: must write after decode": true,
|
|
56363
|
+
write
|
|
56364
|
+
};
|
|
56365
|
+
};
|
|
56366
|
+
return {
|
|
56367
|
+
"sentence: must decode after read": true,
|
|
56368
|
+
decode
|
|
56369
|
+
};
|
|
56370
|
+
};
|
|
56371
|
+
};
|
|
56372
|
+
/**
|
|
56373
|
+
* Starts a cell that reads and writes and decides nothing, at a static operation name. Use it
|
|
56374
|
+
* where no domain outcome is chosen: a reporter or sink that lays out what it read. A branch
|
|
56375
|
+
* that only picks how something looks belongs in the plain formatter `Decoded` calls; a branch
|
|
56376
|
+
* that picks a domain outcome means the operation is a decision, built with {@link named}.
|
|
56377
|
+
*
|
|
56378
|
+
* The chain is `writer(name, options?)(read).decode(Command).write({ Decoded, CommandRejected })`,
|
|
56379
|
+
* one call per phase: `read` gathers the command's `Encoded` form, the library decodes it with
|
|
56380
|
+
* `Command`, and the matching handler writes. The span, the command's declared attributes, the duration histogram
|
|
56381
|
+
* and its `result_class` are the same as {@link named}'s; there is no decide span and no
|
|
56382
|
+
* decision attribute.
|
|
56383
|
+
*/
|
|
56384
|
+
const writer = dual((args) => typeof args[0] === "string", writerImpl);
|
|
56309
56385
|
//#endregion
|
|
56310
56386
|
//#region ../stryker-js-plugin-runtime/dist/index.mjs
|
|
56311
56387
|
init_esm$2();
|
|
@@ -56395,15 +56471,15 @@ const serverMiddleware = (effect, options) => {
|
|
|
56395
56471
|
};
|
|
56396
56472
|
const layerTraceContextServer = succeed$5(Trace_exports.TraceContextMiddleware, serverMiddleware);
|
|
56397
56473
|
dual(3, (spanName, attributes, effect) => flatMap$3(context(), (context) => match$6(remoteSpanOf(context), {
|
|
56398
|
-
onNone: () =>
|
|
56399
|
-
onSome: (linked) =>
|
|
56474
|
+
onNone: () => withSpan(effect, spanName, { attributes }),
|
|
56475
|
+
onSome: (linked) => withSpan(effect, spanName, {
|
|
56400
56476
|
attributes,
|
|
56401
56477
|
root: true,
|
|
56402
56478
|
links: [{
|
|
56403
56479
|
span: linked,
|
|
56404
56480
|
attributes: {}
|
|
56405
56481
|
}]
|
|
56406
|
-
}
|
|
56482
|
+
})
|
|
56407
56483
|
})));
|
|
56408
56484
|
const jsonEscapesKey = (key) => JSON.stringify(key) !== `"${key}"`;
|
|
56409
56485
|
const isJsonArray = (value) => Array.isArray(value);
|
|
@@ -59575,7 +59651,7 @@ const isEmptyNumber = (value$15) => value(value$15).pipe(when(0, () => true), or
|
|
|
59575
59651
|
const isEmptyError = (error) => value(error).pipe(when(_undefined, () => true), when(_null, () => true), when(string, (text) => text.length === 0), when(number, isEmptyNumber), when(boolean, (value) => !value), orElse$1(() => false));
|
|
59576
59652
|
const formatErrnoException = (error) => value(error.stack).pipe(when(hasText, (stack) => `${error.name}: ${error.code} (${error.syscall}) ${stack}`), orElse$1(() => `${error.name}: ${error.code} (${error.syscall})`));
|
|
59577
59653
|
const formatError = (error) => value(error.stack).pipe(when(hasText, (stack) => `${error.name}: ${error.message}\n${stack}`), orElse$1(() => `${error.name}: ${error.message}`));
|
|
59578
|
-
const isJsonPrimitive = (value$
|
|
59654
|
+
const isJsonPrimitive = (value$10) => value(value$10).pipe(when(number, () => true), when(boolean, () => true), when(bigint, () => true), orElse$1(() => false));
|
|
59579
59655
|
const jsonText = (error) => getOrElse(try_$2({
|
|
59580
59656
|
try: () => textIfNonEmpty(JSON.stringify(error)),
|
|
59581
59657
|
catch: () => void 0
|
|
@@ -59606,13 +59682,13 @@ function nonStringTextOf(error) {
|
|
|
59606
59682
|
return primitiveJsonOf(error) ?? stringifyRest(error);
|
|
59607
59683
|
}
|
|
59608
59684
|
const errorText = (error) => value(error).pipe(when(isErrnoException, formatErrnoException), orElse$1(() => formatError(error)));
|
|
59609
|
-
const errorNameOf = (value$
|
|
59685
|
+
const errorNameOf = (value$9) => value(value$9).pipe(when(instanceOf(Error), (error) => textIfNonEmpty(error.name)), orElse$1(() => void 0));
|
|
59610
59686
|
const tagOf = (value$6) => value(textIfNonEmpty(fieldOf$1(value$6, "_tag"))).pipe(when(hasText, (tag) => tag), orElse$1(() => errorNameOf(value$6)));
|
|
59611
59687
|
const textWithNested = (own, nested) => value(own).pipe(when(hasText, (text) => appendNested(text, nested)), orElse$1(() => nested));
|
|
59612
59688
|
const appendNested = (own, nested) => value(nested).pipe(when(hasText, (text) => `${own}: ${text}`), orElse$1(() => own));
|
|
59613
59689
|
const errorMessage = (error) => value(error.message.length > 0).pipe(when(true, () => error.message), orElse$1(() => tagOf(error)));
|
|
59614
59690
|
const errorMessageOrTag = (value$21) => value(value$21).pipe(when(instanceOf(Error), errorMessage), orElse$1(() => tagOf(value$21)));
|
|
59615
|
-
const messageText = (value$
|
|
59691
|
+
const messageText = (value$8) => value(textIfNonEmpty(fieldOf$1(value$8, "message"))).pipe(when(hasText, (message) => message), orElse$1(() => errorMessageOrTag(value$8)));
|
|
59616
59692
|
const ownCauseText = (value$20) => value(textIfNonEmpty(fieldOf$1(value$20, "reason"))).pipe(when(hasText, (reason) => reason), orElse$1(() => messageText(value$20)));
|
|
59617
59693
|
const isPastDepth = (depth) => depth > 4;
|
|
59618
59694
|
const isMissingCause = (cause) => cause === void 0 || cause === null;
|
|
@@ -60591,7 +60667,7 @@ const identifierText = (node) => match$6(fromNullishOr(node), {
|
|
|
60591
60667
|
onNone: () => none(),
|
|
60592
60668
|
onSome: (present) => value(present).pipe(when(isNamedIdentifier, (name) => some(name.name)), when(isStringLiteral$1, (literal) => literalValueText(literal.value)), orElse$1(() => none()))
|
|
60593
60669
|
});
|
|
60594
|
-
const literalValueText = (value$
|
|
60670
|
+
const literalValueText = (value$12) => value(value$12).pipe(when(isString$1, (text) => some(text)), orElse$1(() => none()));
|
|
60595
60671
|
const moduleExportName = (name) => getOrElse$1(identifierText(name), () => "");
|
|
60596
60672
|
const staticMemberName = (member) => value(member.computed).pipe(when(false, () => identifierText(member.property)), orElse$1(() => none()));
|
|
60597
60673
|
const nodesOutsideFunctions = (root) => {
|
|
@@ -62391,7 +62467,7 @@ const literalWithoutRegex = (node) => match$6(fromNullishOr(node.bigint), {
|
|
|
62391
62467
|
const valueLiteralText = (value$24) => value(value$24).pipe(when(string, (v) => JSON.stringify(v)), orElse$1(nonStringLiteralText));
|
|
62392
62468
|
const nonStringLiteralText = (value$14) => value(value$14).pipe(when(number, (v) => String(v)), orElse$1(booleanOrBigintText));
|
|
62393
62469
|
const booleanOrBigintText = (value$5) => value(value$5).pipe(when(boolean, (v) => String(v)), orElse$1(bigintText));
|
|
62394
|
-
const bigintText = (value$
|
|
62470
|
+
const bigintText = (value$13) => value(value$13).pipe(when((candidate) => typeof candidate === "bigint", (v) => `${String(v)}n`), orElse$1(() => "null"));
|
|
62395
62471
|
const flagText = (present, text) => match$1(isTruthy(present), {
|
|
62396
62472
|
onTrue: () => text,
|
|
62397
62473
|
onFalse: () => ""
|
|
@@ -62406,7 +62482,7 @@ const objectExpressionText = (ctx, node) => match$1(node.properties.length === 0
|
|
|
62406
62482
|
onFalse: () => `{ ${nodeListText(ctx, node.properties, PREC.Sequence)} }`
|
|
62407
62483
|
});
|
|
62408
62484
|
const propertyText = (ctx, node) => value(propertyFormOf(node)).pipe(when("accessor", () => `${node.kind} ${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}${functionValueTailText(ctx, node.value)}`), when("method", () => `${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}${functionValueTailText(ctx, node.value)}`), when("shorthand", () => identifierNameText(node.key)), when("shorthandDefault", () => shorthandDefaultPropertyText(ctx, node)), orElse$1(() => `${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}: ${printNodePrec(ctx, node.value, PREC.Assignment)}`));
|
|
62409
|
-
const functionValueTailText = (ctx, value$
|
|
62485
|
+
const functionValueTailText = (ctx, value$11) => value(value$11).pipe(when(isFunctionNode, (fn) => functionTailText(ctx, fn)), orElse$1(() => ""));
|
|
62410
62486
|
const shorthandDefaultPropertyText = (ctx, node) => value(node.value).pipe(when(isAssignmentPattern, (value) => `${identifierNameText(node.key)} = ${printNodePrec(ctx, value.right, PREC.Assignment)}`), orElse$1(() => ""));
|
|
62411
62487
|
const propertyKeyText = (ctx, key, computed, computedPrec) => match$1(computed, {
|
|
62412
62488
|
onTrue: () => `[${dispatchNode(ctx, key, computedPrec)}]`,
|
|
@@ -63038,19 +63114,15 @@ var FormatAssigned = class extends TaggedClass()("FormatAssigned", {
|
|
|
63038
63114
|
};
|
|
63039
63115
|
var FormatSkipped = class extends TaggedClass()("FormatSkipped", {
|
|
63040
63116
|
fileName: String$2,
|
|
63041
|
-
extension: String$2
|
|
63042
|
-
reason: String$2
|
|
63117
|
+
extension: String$2
|
|
63043
63118
|
}) {
|
|
63044
63119
|
[FormatResolutionTypeId] = FormatResolutionTypeId;
|
|
63045
63120
|
};
|
|
63046
|
-
var FormatOverrideUnclaimed = class extends
|
|
63121
|
+
var FormatOverrideUnclaimed = class extends TaggedClass()("FormatOverrideUnclaimed", {
|
|
63047
63122
|
fileName: String$2,
|
|
63048
|
-
formatId: String$2
|
|
63049
|
-
reason: String$2
|
|
63123
|
+
formatId: String$2
|
|
63050
63124
|
}) {
|
|
63051
|
-
|
|
63052
|
-
return `Cannot instrument ${this.fileName}: ${this.reason}`;
|
|
63053
|
-
}
|
|
63125
|
+
[FormatResolutionTypeId] = FormatResolutionTypeId;
|
|
63054
63126
|
};
|
|
63055
63127
|
const pinOf = (command) => fromUndefinedOr(command.formatId);
|
|
63056
63128
|
const matchesCommand = (claim, command) => value(pinOf(command)).pipe(when(isSome, (pin) => claim.formatId === pin.value), orElse$1(() => claim.extensions.includes(command.extension)));
|
|
@@ -63063,13 +63135,11 @@ const assignedFrom = (claim, command) => FormatAssigned.make({
|
|
|
63063
63135
|
});
|
|
63064
63136
|
const skippedFrom = (command) => FormatSkipped.make({
|
|
63065
63137
|
fileName: command.fileName,
|
|
63066
|
-
extension: command.extension
|
|
63067
|
-
reason: `No installed format claims "${command.extension}". Install the framework plugin that claims this file type to instrument it.`
|
|
63138
|
+
extension: command.extension
|
|
63068
63139
|
});
|
|
63069
63140
|
const overrideUnclaimedFrom = (command, formatId) => FormatOverrideUnclaimed.make({
|
|
63070
63141
|
fileName: command.fileName,
|
|
63071
|
-
formatId
|
|
63072
|
-
reason: `No installed format carries the id "${formatId}" pinned for this file.`
|
|
63142
|
+
formatId
|
|
63073
63143
|
});
|
|
63074
63144
|
const ClaimSelected = TaggedStruct("ClaimSelected", { claim: FormatClaimSchema });
|
|
63075
63145
|
const PinUnclaimed = TaggedStruct("PinUnclaimed", { formatId: String$2 });
|
|
@@ -63088,9 +63158,13 @@ const selectionFor = (command) => match$6(fromUndefinedOr(claimFor(command)), {
|
|
|
63088
63158
|
});
|
|
63089
63159
|
const resolveFormat = Workflow_exports.make({
|
|
63090
63160
|
command: FormatResolutionCommand,
|
|
63091
|
-
decision: Union([
|
|
63092
|
-
|
|
63093
|
-
|
|
63161
|
+
decision: Union([
|
|
63162
|
+
FormatAssigned,
|
|
63163
|
+
FormatSkipped,
|
|
63164
|
+
FormatOverrideUnclaimed
|
|
63165
|
+
]),
|
|
63166
|
+
error: Never,
|
|
63167
|
+
decide: (command) => value(selectionFor(command)).pipe(tag("ClaimSelected", ({ claim }) => succeed$9(assignedFrom(claim, command))), tag("PinUnclaimed", ({ formatId }) => succeed$9(overrideUnclaimedFrom(command, formatId))), tag("ExtensionUnclaimed", () => succeed$9(skippedFrom(command))), exhaustive)
|
|
63094
63168
|
});
|
|
63095
63169
|
const AridRuleId = Literals([
|
|
63096
63170
|
"arid-logging",
|
|
@@ -63540,7 +63614,7 @@ const MutantSetDecision = ArraySchema(Union([MutantSuppressed, MutantKept]));
|
|
|
63540
63614
|
* plant the same code exactly when these texts are equal, so the policy compares text and reparses nothing.
|
|
63541
63615
|
*/
|
|
63542
63616
|
const canonicalForm = (text) => text.trim();
|
|
63543
|
-
const defaultOnly = (policy, value$
|
|
63617
|
+
const defaultOnly = (policy, value$7) => value(policy).pipe(when("full", () => none()), when("default", value$7), exhaustive);
|
|
63544
63618
|
const printedAs = (code) => canonicalForm(code);
|
|
63545
63619
|
const printsSomething = (code) => printedAs(code).length > 0;
|
|
63546
63620
|
const samePrintedCode = (left, right) => [printsSomething(left), printedAs(left) === printedAs(right)].every(Boolean);
|
|
@@ -64686,20 +64760,22 @@ const parsedOutcomeFor = (registry, file, assigned) => match$6(registry.entryFor
|
|
|
64686
64760
|
}
|
|
64687
64761
|
}))
|
|
64688
64762
|
});
|
|
64763
|
+
const skipReasonOf = (skipped) => `No installed format claims "${skipped.extension}". Install the framework plugin that claims this file type to instrument it.`;
|
|
64764
|
+
const overrideUnclaimedTextOf = (unclaimed) => `Cannot instrument ${unclaimed.fileName}: No installed format carries the id "${unclaimed.formatId}" pinned for this file.`;
|
|
64689
64765
|
const skippedOutcomeFor = (file, skipped) => ({
|
|
64690
64766
|
kind: "skipped",
|
|
64691
64767
|
record: InstrumentFileSkip.make({
|
|
64692
64768
|
file: file.name,
|
|
64693
64769
|
extension: skipped.extension,
|
|
64694
|
-
reason: skipped
|
|
64770
|
+
reason: skipReasonOf(skipped)
|
|
64695
64771
|
})
|
|
64696
64772
|
});
|
|
64697
64773
|
const unclaimedOverrideError = (file) => InstrumentError.make({
|
|
64698
64774
|
message: `No installed format owns ${file.name}`,
|
|
64699
64775
|
cause: /* @__PURE__ */ new Error(`Unresolvable format pin for ${file.name}`)
|
|
64700
64776
|
});
|
|
64701
|
-
const outcomeFor = (registry, file, decision) => value(decision).pipe(when(is(FormatAssigned), (assigned) => parsedOutcomeFor(registry, file, assigned)), when(is(FormatSkipped), (skipped) => succeed$4(skippedOutcomeFor(file, skipped))), exhaustive);
|
|
64702
|
-
const fileOutcome = (request) =>
|
|
64777
|
+
const outcomeFor = (registry, file, decision) => value(decision).pipe(when(is(FormatAssigned), (assigned) => parsedOutcomeFor(registry, file, assigned)), when(is(FormatSkipped), (skipped) => succeed$4(skippedOutcomeFor(file, skipped))), when(is(FormatOverrideUnclaimed), () => fail$4(unclaimedOverrideError(file))), exhaustive);
|
|
64778
|
+
const fileOutcome = (request) => flatMap$3(fromResult(resolveFile(request.registry, request.file.name)), (decision) => outcomeFor(request.registry, request.file, decision));
|
|
64703
64779
|
const isParsedOutcome = (outcome) => outcome.kind === "parsed";
|
|
64704
64780
|
const skipsOf = (outcome) => outcome.kind === "skipped" ? [outcome.record] : [];
|
|
64705
64781
|
const transformInto = (request) => transform(request.ast, request.collector, {
|
|
@@ -64857,7 +64933,10 @@ const disableTypeChecksCell = Sandwich_exports.named(SpanTaxonomy_exports.Spans.
|
|
|
64857
64933
|
formatId: assigned.formatId
|
|
64858
64934
|
}),
|
|
64859
64935
|
FormatSkipped: (_skipped, raw) => succeed$4(raw.file),
|
|
64860
|
-
FormatOverrideUnclaimed: (
|
|
64936
|
+
FormatOverrideUnclaimed: (unclaimed, raw) => fail$4(InstrumentError.make({
|
|
64937
|
+
message: `No installed format owns ${raw.file.name}`,
|
|
64938
|
+
cause: new Error(overrideUnclaimedTextOf(unclaimed))
|
|
64939
|
+
})),
|
|
64861
64940
|
CommandRejected: ({ issue }) => fail$4(InstrumentError.make({
|
|
64862
64941
|
message: issue,
|
|
64863
64942
|
cause: new Error(issue)
|
|
@@ -64960,9 +65039,6 @@ const disableTypeChecksDataFirst = (file, registry = coreFormatRegistry) => disa
|
|
|
64960
65039
|
}).pipe(map$3((disabled) => ({
|
|
64961
65040
|
...file,
|
|
64962
65041
|
content: disabled.content
|
|
64963
|
-
})), mapError$1((cause) => is(InstrumentError)(cause) ? cause : InstrumentError.make({
|
|
64964
|
-
message: `No installed format owns ${file.name}`,
|
|
64965
|
-
cause
|
|
64966
65042
|
})));
|
|
64967
65043
|
const disableTypeChecks = dual((args) => hasProperty(args[0], "content"), disableTypeChecksDataFirst);
|
|
64968
65044
|
var Instrument_exports = /* @__PURE__ */ __exportAll({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js-vitest-runner",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
|
|
39
39
|
"@opentelemetry/sdk-node": "^0.222.0",
|
|
40
40
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
41
|
-
"@systemfsoftware/effect-cell-types": "^12.
|
|
41
|
+
"@systemfsoftware/effect-cell-types": "^12.2.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vitest": "^5"
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"@systemfsoftware/stryker-ignorer-effect-schema-declarations": "^0.3.1",
|
|
54
54
|
"@systemfsoftware/stryker-ignorer-in-source-vitest-block": "^0.1.3",
|
|
55
55
|
"@systemfsoftware/stryker-js": "^23.0.0",
|
|
56
|
-
"@systemfsoftware/stryker-js-cli-contract": "^3.
|
|
57
|
-
"@systemfsoftware/stryker-js-instrumenter": "^16.0.
|
|
58
|
-
"@systemfsoftware/stryker-js-plugin-interface": "^
|
|
59
|
-
"@systemfsoftware/stryker-js-plugin-runtime": "^9.0.
|
|
56
|
+
"@systemfsoftware/stryker-js-cli-contract": "^3.1.1",
|
|
57
|
+
"@systemfsoftware/stryker-js-instrumenter": "^16.0.3",
|
|
58
|
+
"@systemfsoftware/stryker-js-plugin-interface": "^20.0.0",
|
|
59
|
+
"@systemfsoftware/stryker-js-plugin-runtime": "^9.0.3",
|
|
60
60
|
"@systemfsoftware/stryker-js-typescript-checker": "^10.0.0",
|
|
61
61
|
"@systemfsoftware/stryker-js-vitest-runner": "^10.1.0",
|
|
62
62
|
"@systemfsoftware/tsconfig": "^2.0.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@opentelemetry/sdk-trace-base": "2.11.0",
|
|
98
98
|
"@opentelemetry/sdk-trace-node": "2.11.0",
|
|
99
99
|
"@opentelemetry/semantic-conventions": "1.43.0",
|
|
100
|
-
"@systemfsoftware/effect-cell-types": "12.
|
|
100
|
+
"@systemfsoftware/effect-cell-types": "12.2.0",
|
|
101
101
|
"effect": "4.1.2",
|
|
102
102
|
"oxc-parser": "0.150.0"
|
|
103
103
|
},
|