@systemfsoftware/stryker-js 12.1.0 → 12.1.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-BnUKGQjA.d.mts → Run.schema-D7N2ILY3.d.mts} +1 -1
- package/dist/{RunEnvironment.service-BaTBH0mI.d.mts → RunEnvironment.service-6aDpmGcD.d.mts} +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/events.d.mts +1 -1
- package/dist/{index-CKd1sAni.d.mts → index-B8dqrKV1.d.mts} +928 -934
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/main.mjs +34 -64
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/{run-stages.cell-RwTUyNX9.mjs → run-stages.cell-CtFLJCm0.mjs} +24 -32
- package/dist/{stryker-config.schema-VVxHqsAv.d.mts → stryker-config.schema-DFWkz89S.d.mts} +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as mod_d_exports$2$2, d as Ignorer, f as Node_2, i as mod_d_exports$4$1, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6$1, t as mod_d_exports$6, u as Framework } from "./index-
|
|
2
|
-
import { i as Primitive, n as Immutable, r as ImmutablePrimitive } from "./stryker-config.schema-
|
|
3
|
-
import { A as VerdictReached, D as SkippedReported, E as SkippedFileRow, S as RunPhase, T as RunTerminalEvent, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, f as OutputMode, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, u as ModeSignal, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-
|
|
4
|
-
import { $ as ResolvedMode, A as REPORTER_EVENT_BATCH_BOUND, B as make, C as WorkerPluginSource, D as IdGenerator, E as TestCoverage, F as spawnReporterWorker, G as RunIdentityShape, H as ProjectFile, I as WorkerLauncher, J as RunEventStream, K as RunEventDrain, L as WorkerLauncherShape, M as ReporterWorkerClient, N as SpawnReporterWorkerParams, O as IdGeneratorShape, P as reporterWorkerFactory, Q as OutputMode$1, R as WorkerSpawnParams, S as WorkerPluginDescriptor, T as StrykerError, U as RunEvents, V as Project, W as RunIdentity, X as ResolvedModeInput, Y as makeRunEventStream, Z as ModeSignal$1, _ as LoadedPlugins, a as StageServices, at as ChildProcessCrashedError, b as PluginKind, c as DryRunDone, ct as WorkerBootTimeoutError, d as PrepareExecutorArgs, et as ConfigError, f as AnyPluginDescriptor, g as EvaluatorPluginSource, h as EvaluatorPluginDescriptor, i as RunStageServices, it as ConfigFileUnsupportedError, j as ReporterStage, k as PooledTestRunnerError, l as InstrumentDone, lt as WorkerExit, m as AnyWorkerPluginSource, n as RunEnvironmentShape, nt as ConfigFileNotFoundError, o as WiredRunLayer, ot as OutOfMemoryError, p as AnyWorkerPluginDescriptor, q as RunEventDrainLive, r as EnginePorts, rt as ConfigFileUnreadableError, s as MutationTestDone, st as WorkerBootError, t as RunEnvironment, tt as ConfigFileInvalidError, u as PrepareDone, v as PluginDescriptor, w as SandboxHandle, x as PluginSource, y as PluginDescriptorOf, z as SpawnedSocketWorker } from "./RunEnvironment.service-
|
|
1
|
+
import { c as mod_d_exports$2$2, d as Ignorer, f as Node_2, i as mod_d_exports$4$1, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6$1, t as mod_d_exports$6, u as Framework } from "./index-B8dqrKV1.mjs";
|
|
2
|
+
import { i as Primitive, n as Immutable, r as ImmutablePrimitive } from "./stryker-config.schema-DFWkz89S.mjs";
|
|
3
|
+
import { A as VerdictReached, D as SkippedReported, E as SkippedFileRow, S as RunPhase, T as RunTerminalEvent, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, f as OutputMode, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, u as ModeSignal, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-D7N2ILY3.mjs";
|
|
4
|
+
import { $ as ResolvedMode, A as REPORTER_EVENT_BATCH_BOUND, B as make, C as WorkerPluginSource, D as IdGenerator, E as TestCoverage, F as spawnReporterWorker, G as RunIdentityShape, H as ProjectFile, I as WorkerLauncher, J as RunEventStream, K as RunEventDrain, L as WorkerLauncherShape, M as ReporterWorkerClient, N as SpawnReporterWorkerParams, O as IdGeneratorShape, P as reporterWorkerFactory, Q as OutputMode$1, R as WorkerSpawnParams, S as WorkerPluginDescriptor, T as StrykerError, U as RunEvents, V as Project, W as RunIdentity, X as ResolvedModeInput, Y as makeRunEventStream, Z as ModeSignal$1, _ as LoadedPlugins, a as StageServices, at as ChildProcessCrashedError, b as PluginKind, c as DryRunDone, ct as WorkerBootTimeoutError, d as PrepareExecutorArgs, et as ConfigError, f as AnyPluginDescriptor, g as EvaluatorPluginSource, h as EvaluatorPluginDescriptor, i as RunStageServices, it as ConfigFileUnsupportedError, j as ReporterStage, k as PooledTestRunnerError, l as InstrumentDone, lt as WorkerExit, m as AnyWorkerPluginSource, n as RunEnvironmentShape, nt as ConfigFileNotFoundError, o as WiredRunLayer, ot as OutOfMemoryError, p as AnyWorkerPluginDescriptor, q as RunEventDrainLive, r as EnginePorts, rt as ConfigFileUnreadableError, s as MutationTestDone, st as WorkerBootError, t as RunEnvironment, tt as ConfigFileInvalidError, u as PrepareDone, v as PluginDescriptor, w as SandboxHandle, x as PluginSource, y as PluginDescriptorOf, z as SpawnedSocketWorker } from "./RunEnvironment.service-6aDpmGcD.mjs";
|
|
5
5
|
import { Blueprint, Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
6
6
|
import * as S from "effect/Schema";
|
|
7
7
|
import * as Effect from "effect/Effect";
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
2
|
import { D as VerdictReached, E as SkippedReported, S as RunPhase, T as SkippedFileRow, _ as PluginsReported, a as FormatRegistryRow, b as RunFailed, c as Heartbeat, g as PluginFailureReason, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, n as StageError, o as FrameworkContributionRow, p as PhaseEntered, r as FormatClaimShadowingRow, s as FrameworkModuleRow, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-BaK_pxuK.mjs";
|
|
3
|
-
import { $ as ExtendsStepDone, A as RunEvents, B as make, C as forkCoreSchema, D as validateOptions, E as mergeConfigs, F as MetricsResultFromReport, G as ConfigFileInvalidError, H as isCommandRunner, I as reporterWorkerFactory, J as ConfigFileUnsupportedError, K as ConfigFileNotFoundError, L as spawnReporterWorker, M as VerdictEnvelope, N as VerdictMutant, O as RunEnvironment, P as VerdictThresholds, Q as ExtendsStepDocumentSchema, R as makeWorkerClient, S as describeErrors, T as initialExtendsStepState, U as FileMatcher, V as StrykerError, W as ConfigError, X as defaultOptions, Y as createDefaultOptions, Z as ConfigDocumentSchema, _ as ClassifyWorkerExitDecision, a as isVmRunner, at as MergeCommand, b as readConfig, c as vmTestRunnerConfig, ct as extendsPropertySchema, d as makeRunEventStream, dt as checkGroupedPlans, et as ExtendsStepRead, f as RunEventWireLine, ft as ChildProcessCrashedError, g as ClassifyWorkerExitCommand, gt as CheckerSkippedRequested, h as layerWorkerProtocol, ht as CheckerAnsweredUnrequested, i as makeChildProcessTestRunner, it as ImportedModuleSchema, j as RunIdentity, k as IdGenerator, l as RunEventDrain, lt as forkOptionsSchema, m as nodePlatformLayer, mt as WorkerBootTimeoutError, n as strykerCell, nt as ExtendsStepResolve, o as testRunnerConfigOf, ot as MergeResult, p as IncrementalReportSchema, pt as OutOfMemoryError, q as ConfigFileUnreadableError, r as buildTestRunner, rt as ExtendsStepStateSchema, s as vmRunnerPluginUrl, st as ReadConfigCommand, t as mutationTestCell, tt as ExtendsStepRefused, u as RunEventDrainLive, ut as survivorsPriorReport, v as classifyWorkerExit, w as importModule, x as decideExtendsStep, y as loadConfigCell, z as WorkerLauncher } from "./run-stages.cell-
|
|
3
|
+
import { $ as ExtendsStepDone, A as RunEvents, B as make, C as forkCoreSchema, D as validateOptions, E as mergeConfigs, F as MetricsResultFromReport, G as ConfigFileInvalidError, H as isCommandRunner, I as reporterWorkerFactory, J as ConfigFileUnsupportedError, K as ConfigFileNotFoundError, L as spawnReporterWorker, M as VerdictEnvelope, N as VerdictMutant, O as RunEnvironment, P as VerdictThresholds, Q as ExtendsStepDocumentSchema, R as makeWorkerClient, S as describeErrors, T as initialExtendsStepState, U as FileMatcher, V as StrykerError, W as ConfigError, X as defaultOptions, Y as createDefaultOptions, Z as ConfigDocumentSchema, _ as ClassifyWorkerExitDecision, a as isVmRunner, at as MergeCommand, b as readConfig, c as vmTestRunnerConfig, ct as extendsPropertySchema, d as makeRunEventStream, dt as checkGroupedPlans, et as ExtendsStepRead, f as RunEventWireLine, ft as ChildProcessCrashedError, g as ClassifyWorkerExitCommand, gt as CheckerSkippedRequested, h as layerWorkerProtocol, ht as CheckerAnsweredUnrequested, i as makeChildProcessTestRunner, it as ImportedModuleSchema, j as RunIdentity, k as IdGenerator, l as RunEventDrain, lt as forkOptionsSchema, m as nodePlatformLayer, mt as WorkerBootTimeoutError, n as strykerCell, nt as ExtendsStepResolve, o as testRunnerConfigOf, ot as MergeResult, p as IncrementalReportSchema, pt as OutOfMemoryError, q as ConfigFileUnreadableError, r as buildTestRunner, rt as ExtendsStepStateSchema, s as vmRunnerPluginUrl, st as ReadConfigCommand, t as mutationTestCell, tt as ExtendsStepRefused, u as RunEventDrainLive, ut as survivorsPriorReport, v as classifyWorkerExit, w as importModule, x as decideExtendsStep, y as loadConfigCell, z as WorkerLauncher } from "./run-stages.cell-CtFLJCm0.mjs";
|
|
4
4
|
//#region src/Checker/mod.ts
|
|
5
5
|
var Checker_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
CheckerAnsweredUnrequested: () => CheckerAnsweredUnrequested,
|
package/dist/main.mjs
CHANGED
|
@@ -16262,30 +16262,6 @@ const separate = /*#__PURE__*/ (/* @__PURE__ */ dual(2, (self, f) => {
|
|
|
16262
16262
|
*/
|
|
16263
16263
|
const reduce$4 = /*#__PURE__*/ dual(3, (self, b, f) => fromIterable$8(self).reduce((b, a, i) => f(b, a, i), b));
|
|
16264
16264
|
/**
|
|
16265
|
-
* Checks whether all elements satisfy the predicate. Supports refinements for
|
|
16266
|
-
* type narrowing.
|
|
16267
|
-
*
|
|
16268
|
-
* **When to use**
|
|
16269
|
-
*
|
|
16270
|
-
* Use to check whether every array element satisfies a predicate, including
|
|
16271
|
-
* refinement-based type narrowing.
|
|
16272
|
-
*
|
|
16273
|
-
* **Example** (Testing all elements)
|
|
16274
|
-
*
|
|
16275
|
-
* ```ts import.meta.vitest
|
|
16276
|
-
* import { Array } from "effect"
|
|
16277
|
-
*
|
|
16278
|
-
* Array.every([2, 4, 6], (x) => x % 2 === 0) // => true
|
|
16279
|
-
* Array.every([2, 3, 6], (x) => x % 2 === 0) // => false
|
|
16280
|
-
* ```
|
|
16281
|
-
*
|
|
16282
|
-
* @see {@link some} — test if any element matches
|
|
16283
|
-
*
|
|
16284
|
-
* @category guards
|
|
16285
|
-
* @since 2.0.0
|
|
16286
|
-
*/
|
|
16287
|
-
const every$2 = /*#__PURE__*/ dual(2, (self, refinement) => self.every(refinement));
|
|
16288
|
-
/**
|
|
16289
16265
|
* Removes duplicates using `Equal.equivalence()`, preserving the order of the
|
|
16290
16266
|
* first occurrence.
|
|
16291
16267
|
*
|
|
@@ -54407,7 +54383,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54407
54383
|
var import_index_shim = require_index_shim();
|
|
54408
54384
|
var import_src = require_src$1();
|
|
54409
54385
|
var import_src$1 = require_src();
|
|
54410
|
-
var version = "12.1.
|
|
54386
|
+
var version = "12.1.1";
|
|
54411
54387
|
var engines = { "node": ">=24.13.1" };
|
|
54412
54388
|
globalThis.Boolean;
|
|
54413
54389
|
/**
|
|
@@ -78192,41 +78168,33 @@ const readClearTextReport = (input) => map$7(fromAsyncIterable(input.events, fai
|
|
|
78192
78168
|
}));
|
|
78193
78169
|
const tint = (color, text) => `${AnsiCode.fields[color].literal}${text}${AnsiCode.fields.reset.literal}`;
|
|
78194
78170
|
const TINT_BY_TONE = {
|
|
78195
|
-
|
|
78196
|
-
|
|
78197
|
-
|
|
78198
|
-
|
|
78199
|
-
|
|
78200
|
-
|
|
78201
|
-
|
|
78202
|
-
};
|
|
78203
|
-
const
|
|
78204
|
-
|
|
78205
|
-
|
|
78206
|
-
|
|
78207
|
-
|
|
78208
|
-
|
|
78209
|
-
|
|
78210
|
-
|
|
78211
|
-
|
|
78212
|
-
|
|
78213
|
-
onTrue: () => [...runs.slice(0, -1), {
|
|
78214
|
-
...last,
|
|
78215
|
-
text: `${last.text}${span.text}`
|
|
78216
|
-
}],
|
|
78217
|
-
onFalse: () => [...runs, span]
|
|
78218
|
-
})
|
|
78171
|
+
plain: (text) => text,
|
|
78172
|
+
identifier: (text) => tint("cyan", text),
|
|
78173
|
+
emphasis: (text) => tint("yellow", text),
|
|
78174
|
+
positive: (text) => tint("green", text),
|
|
78175
|
+
warning: (text) => tint("yellow", text),
|
|
78176
|
+
negative: (text) => tint("red", text),
|
|
78177
|
+
muted: (text) => tint("grey", text)
|
|
78178
|
+
};
|
|
78179
|
+
const bytesOf = (span) => `${" ".repeat(span.leftPad)}${span.text.repeat(span.repeat)}${" ".repeat(span.rightPad)}`;
|
|
78180
|
+
const appendSpan = (runs, span) => match$8(filter$6(last$1(runs), (last) => last.tone === span.tone), {
|
|
78181
|
+
onNone: () => [...runs, {
|
|
78182
|
+
tone: span.tone,
|
|
78183
|
+
bytes: bytesOf(span)
|
|
78184
|
+
}],
|
|
78185
|
+
onSome: (last) => [...runs.slice(0, -1), {
|
|
78186
|
+
tone: last.tone,
|
|
78187
|
+
bytes: `${last.bytes}${bytesOf(span)}`
|
|
78188
|
+
}]
|
|
78219
78189
|
});
|
|
78220
|
-
const
|
|
78221
|
-
const
|
|
78222
|
-
const
|
|
78223
|
-
const renderChunk = (chunk) => chunk.map(renderLine).join("\n");
|
|
78224
|
-
const writeChunks = (output, channel, chunks) => output.write(channel, chunks.map((chunk) => `${renderChunk(chunk)}\n`)).pipe(mapError$1(failAsClearText), asVoid);
|
|
78190
|
+
const renderLine = (line) => reduce$4(line, empty$8(), appendSpan).map((run) => TINT_BY_TONE[run.tone](run.bytes)).join("");
|
|
78191
|
+
const renderChunk = (chunk) => `${chunk.map(renderLine).join("\n")}\n`;
|
|
78192
|
+
const writeChunks = (output, channel, chunks) => mapError$1(output.write(channel, chunks.map(renderChunk)), failAsClearText);
|
|
78225
78193
|
const clearTextReportCell = Sandwich_exports.named("stryker.report.clearText")(readClearTextReport).decide(renderClearTextReport).write({
|
|
78226
|
-
ClearTextReportRendered: (rendered
|
|
78194
|
+
ClearTextReportRendered: (rendered) => gen(function* () {
|
|
78227
78195
|
const output = yield* ReporterOutput;
|
|
78228
78196
|
yield* writeChunks(output, "stdout", rendered.stdout);
|
|
78229
|
-
yield*
|
|
78197
|
+
yield* writeChunks(output, "stderr", rendered.stderr);
|
|
78230
78198
|
}),
|
|
78231
78199
|
ClearTextReportSuppressed: () => void_$1,
|
|
78232
78200
|
CommandRejected: ({ issue }) => fail$2(failAsClearText(issue))
|
|
@@ -85332,15 +85300,17 @@ const outcomeOf = (result) => match$6(result, {
|
|
|
85332
85300
|
});
|
|
85333
85301
|
const EXPORTABLE_SPAN_ERROR_LIMIT = 1024;
|
|
85334
85302
|
const USAGE_EXIT_CODE = RunExitCode.fromOutcome(RunParseFailed.make({})).code;
|
|
85303
|
+
const truncatedForSpan = (text) => match$1(text.length > EXPORTABLE_SPAN_ERROR_LIMIT, {
|
|
85304
|
+
onTrue: () => `${text.slice(0, EXPORTABLE_SPAN_ERROR_LIMIT)}…[truncated]`,
|
|
85305
|
+
onFalse: () => text
|
|
85306
|
+
});
|
|
85307
|
+
const exportableErrorText = (failure, captured) => truncatedForSpan(ErrorEnvelope.fromOutcome({
|
|
85308
|
+
error: failure,
|
|
85309
|
+
captured
|
|
85310
|
+
}).error);
|
|
85335
85311
|
const errorTextOf = (result, captured) => match$6(result, {
|
|
85336
|
-
onSuccess: () => "",
|
|
85337
|
-
onFailure: (failure) =>
|
|
85338
|
-
const text = ErrorEnvelope.fromOutcome({
|
|
85339
|
-
error: failure,
|
|
85340
|
-
captured
|
|
85341
|
-
}).error;
|
|
85342
|
-
return value(text.length > EXPORTABLE_SPAN_ERROR_LIMIT).pipe(when(true, () => `${text.slice(0, EXPORTABLE_SPAN_ERROR_LIMIT)}…[truncated]`), orElse$1(() => text));
|
|
85343
|
-
}
|
|
85312
|
+
onSuccess: (decision) => value(decision).pipe(tag("RunOk", () => ""), orElse$1((failed) => exportableErrorText(failed, captured))),
|
|
85313
|
+
onFailure: (failure) => exportableErrorText(failure, captured)
|
|
85344
85314
|
});
|
|
85345
85315
|
const strykerCliEffect = (options) => gen(function* () {
|
|
85346
85316
|
const machineConsole = yield* MachineConsole;
|
package/dist/promises.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as mod_d_exports$2 } from "./index-
|
|
2
|
-
import { s as MutationTestDone } from "./RunEnvironment.service-
|
|
1
|
+
import { n as mod_d_exports$2 } from "./index-B8dqrKV1.mjs";
|
|
2
|
+
import { s as MutationTestDone } from "./RunEnvironment.service-6aDpmGcD.mjs";
|
|
3
3
|
//#region src/promises/mod.d.ts
|
|
4
4
|
export declare const run: ((targetMutatePatterns?: readonly string[]) => (options: mod_d_exports$2.PartialStrykerOptions) => Promise<MutationTestDone>) & ((options: mod_d_exports$2.PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Promise<MutationTestDone>);
|
|
5
5
|
//#endregion
|
package/dist/promises.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as nodePlatformLayer, n as strykerCell } from "./run-stages.cell-
|
|
1
|
+
import { m as nodePlatformLayer, n as strykerCell } from "./run-stages.cell-CtFLJCm0.mjs";
|
|
2
2
|
import { dual } from "effect/Function";
|
|
3
3
|
import * as ManagedRuntime from "effect/ManagedRuntime";
|
|
4
4
|
//#region src/promises/mod.ts
|
|
@@ -1750,7 +1750,7 @@ var RunEvents = class extends Context.Service()("@systemfsoftware/stryker-js/run
|
|
|
1750
1750
|
var RunIdentity = class extends Context.Service()("@systemfsoftware/stryker-js/run-events.service/RunIdentity") {};
|
|
1751
1751
|
//#endregion
|
|
1752
1752
|
//#region package.json
|
|
1753
|
-
var version = "12.1.
|
|
1753
|
+
var version = "12.1.1";
|
|
1754
1754
|
//#endregion
|
|
1755
1755
|
//#region src/stryker-package.schema.ts
|
|
1756
1756
|
var StrykerPackage = class extends S.Class("StrykerPackage")({
|
|
@@ -2670,41 +2670,33 @@ const readClearTextReport = (input) => Effect$1.map(Stream.fromAsyncIterable(inp
|
|
|
2670
2670
|
}));
|
|
2671
2671
|
const tint = (color, text) => `${AnsiCode.fields[color].literal}${text}${AnsiCode.fields.reset.literal}`;
|
|
2672
2672
|
const TINT_BY_TONE = {
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
};
|
|
2681
|
-
const
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
onTrue: () => [...runs.slice(0, -1), {
|
|
2692
|
-
...last,
|
|
2693
|
-
text: `${last.text}${span.text}`
|
|
2694
|
-
}],
|
|
2695
|
-
onFalse: () => [...runs, span]
|
|
2696
|
-
})
|
|
2673
|
+
plain: (text) => text,
|
|
2674
|
+
identifier: (text) => tint("cyan", text),
|
|
2675
|
+
emphasis: (text) => tint("yellow", text),
|
|
2676
|
+
positive: (text) => tint("green", text),
|
|
2677
|
+
warning: (text) => tint("yellow", text),
|
|
2678
|
+
negative: (text) => tint("red", text),
|
|
2679
|
+
muted: (text) => tint("grey", text)
|
|
2680
|
+
};
|
|
2681
|
+
const bytesOf = (span) => `${" ".repeat(span.leftPad)}${span.text.repeat(span.repeat)}${" ".repeat(span.rightPad)}`;
|
|
2682
|
+
const appendSpan = (runs, span) => Option$1.match(Option$1.filter(Arr.last(runs), (last) => last.tone === span.tone), {
|
|
2683
|
+
onNone: () => [...runs, {
|
|
2684
|
+
tone: span.tone,
|
|
2685
|
+
bytes: bytesOf(span)
|
|
2686
|
+
}],
|
|
2687
|
+
onSome: (last) => [...runs.slice(0, -1), {
|
|
2688
|
+
tone: last.tone,
|
|
2689
|
+
bytes: `${last.bytes}${bytesOf(span)}`
|
|
2690
|
+
}]
|
|
2697
2691
|
});
|
|
2698
|
-
const
|
|
2699
|
-
const
|
|
2700
|
-
const
|
|
2701
|
-
const renderChunk = (chunk) => chunk.map(renderLine).join("\n");
|
|
2702
|
-
const writeChunks = (output, channel, chunks) => output.write(channel, chunks.map((chunk) => `${renderChunk(chunk)}\n`)).pipe(Effect$1.mapError(failAsClearText), Effect$1.asVoid);
|
|
2692
|
+
const renderLine = (line) => Arr.reduce(line, Arr.empty(), appendSpan).map((run) => TINT_BY_TONE[run.tone](run.bytes)).join("");
|
|
2693
|
+
const renderChunk = (chunk) => `${chunk.map(renderLine).join("\n")}\n`;
|
|
2694
|
+
const writeChunks = (output, channel, chunks) => Effect$1.mapError(output.write(channel, chunks.map(renderChunk)), failAsClearText);
|
|
2703
2695
|
const clearTextReportCell = Sandwich.named("stryker.report.clearText")(readClearTextReport).decide(renderClearTextReport).write({
|
|
2704
|
-
ClearTextReportRendered: (rendered
|
|
2696
|
+
ClearTextReportRendered: (rendered) => Effect$1.gen(function* () {
|
|
2705
2697
|
const output = yield* ReporterOutput;
|
|
2706
2698
|
yield* writeChunks(output, "stdout", rendered.stdout);
|
|
2707
|
-
yield*
|
|
2699
|
+
yield* writeChunks(output, "stderr", rendered.stderr);
|
|
2708
2700
|
}),
|
|
2709
2701
|
ClearTextReportSuppressed: () => Effect$1.void,
|
|
2710
2702
|
CommandRejected: ({ issue }) => Effect$1.fail(failAsClearText(issue))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as mod_d_exports$2 } from "./index-
|
|
1
|
+
import { n as mod_d_exports$2 } from "./index-B8dqrKV1.mjs";
|
|
2
2
|
import * as S from "effect/Schema";
|
|
3
3
|
//#region src/config/stryker-config.schema.d.ts
|
|
4
4
|
type StrykerConfig = mod_d_exports$2.PartialStrykerOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"typescript": "^7",
|
|
74
74
|
"vitest": "^5",
|
|
75
75
|
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
76
|
-
"@systemfsoftware/stryker-framework-interface": "^0.0.0",
|
|
77
76
|
"@systemfsoftware/stryker-ignorer-interface": "^0.1.1",
|
|
78
|
-
"@systemfsoftware/stryker-
|
|
77
|
+
"@systemfsoftware/stryker-framework-interface": "^0.0.0",
|
|
78
|
+
"@systemfsoftware/stryker-js-html-reporter": "^5.0.2",
|
|
79
79
|
"@systemfsoftware/stryker-js-plugin-interface": "^9.0.0",
|
|
80
80
|
"@systemfsoftware/stryker-js-plugin-runtime": "^6.0.2",
|
|
81
|
+
"@systemfsoftware/stryker-js-instrumenter": "^9.0.1",
|
|
81
82
|
"@systemfsoftware/tsdown-config": "^0.1.0",
|
|
82
|
-
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
83
|
-
"@systemfsoftware/stryker-js-html-reporter": "^5.0.2"
|
|
83
|
+
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
84
84
|
},
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public",
|