@vitest-agent/reporter 5.0.6 → 5.0.8
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/defaultReporter.js +1 -2
- package/githubLog.js +1 -2
- package/humanReport.js +1 -2
- package/index.d.ts +0 -14
- package/index.js +2 -3
- package/liveView.js +1 -2
- package/package.json +9 -9
- package/streamView.js +1 -2
package/defaultReporter.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Doc, Render, Status } from "@effected/cli";
|
|
|
4
4
|
import { RUN_REPORT_FILE_SCHEMA_URL, countSuiteFailures, isTimeoutError } from "@vitest-agent/sdk";
|
|
5
5
|
import { classifyOutcome, classifyRunShape, dispatch, reduceRenderStateAll, synthesizeFromAgentReport } from "@vitest-agent/ui";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/defaultReporter.ts
|
|
8
8
|
const countTimeouts = (report) => {
|
|
9
9
|
let timeoutCount = 0;
|
|
10
10
|
for (const mod of report.failed) for (const test of mod.tests) {
|
|
@@ -378,5 +378,4 @@ const DefaultVitestAgentReporter = (kit) => {
|
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
-
//#endregion
|
|
382
381
|
export { DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForReport, renderHumanString, renderHumanStringForReport, resolveCellOptions };
|
package/githubLog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Doc, Render, Status } from "@effected/cli";
|
|
2
2
|
import { relative } from "node:path";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/githubLog.ts
|
|
5
5
|
/**
|
|
6
6
|
* Light end-of-run log block for GitHub Actions.
|
|
7
7
|
*
|
|
@@ -94,5 +94,4 @@ function renderGithubLog(input, kit) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
//#endregion
|
|
98
97
|
export { renderGithubLog, toDisplayPath };
|
package/humanReport.js
CHANGED
|
@@ -5,7 +5,7 @@ import { dispatchInk } from "@vitest-agent/ui/ink";
|
|
|
5
5
|
import { renderToString } from "ink";
|
|
6
6
|
import { createElement } from "react";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/humanReport.ts
|
|
9
9
|
/** The width a report is laid out at when no terminal width is known. */
|
|
10
10
|
const FALLBACK_COLUMNS = 80;
|
|
11
11
|
/**
|
|
@@ -32,5 +32,4 @@ const renderInkReport = async (inputs, opts, env, width) => {
|
|
|
32
32
|
return renderToString(createElement(UiProvider, { value: context }, element), { columns });
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
//#endregion
|
|
36
35
|
export { renderInkReport };
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PubSub, Schema } from "effect";
|
|
2
2
|
import "@effected/cli";
|
|
3
3
|
import "@effected/env";
|
|
4
|
-
//#region ../sdk/dist/dev/pkg/index.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Per-file coverage data including uncovered line ranges.
|
|
7
6
|
* @public
|
|
@@ -191,8 +190,6 @@ declare const RenderState: Schema.Struct<{
|
|
|
191
190
|
}>;
|
|
192
191
|
/** @public */
|
|
193
192
|
type RenderState = typeof RenderState.Type;
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/contracts/dispatcher.d.ts
|
|
196
193
|
/**
|
|
197
194
|
* The four run shapes the dispatcher distinguishes.
|
|
198
195
|
*
|
|
@@ -314,8 +311,6 @@ interface CellOptions {
|
|
|
314
311
|
*/
|
|
315
312
|
readonly osc8: (url: string, label: string) => string;
|
|
316
313
|
}
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/formatters/types.d.ts
|
|
319
314
|
/**
|
|
320
315
|
* One unit of rendered reporter output, tagged by where it goes.
|
|
321
316
|
*
|
|
@@ -837,8 +832,6 @@ declare const ResolvedThresholds: Schema.Struct<{
|
|
|
837
832
|
}>;
|
|
838
833
|
/** @public */
|
|
839
834
|
type ResolvedThresholds = typeof ResolvedThresholds.Type;
|
|
840
|
-
//#endregion
|
|
841
|
-
//#region src/schemas/Transport.d.ts
|
|
842
835
|
/**
|
|
843
836
|
* Transport binding for the persistence layer.
|
|
844
837
|
*
|
|
@@ -853,8 +846,6 @@ declare const Transport: Schema.Union<readonly [Schema.Struct<{
|
|
|
853
846
|
}>]>;
|
|
854
847
|
/** @public */
|
|
855
848
|
type Transport = typeof Transport.Type;
|
|
856
|
-
//#endregion
|
|
857
|
-
//#region src/contracts/reporter.d.ts
|
|
858
849
|
/**
|
|
859
850
|
* Config the plugin computes from its own options + Vitest's resolved config,
|
|
860
851
|
* then hands to the reporter factory inside {@link ReporterKit}.
|
|
@@ -1066,8 +1057,6 @@ interface VitestAgentReporter {
|
|
|
1066
1057
|
* @public
|
|
1067
1058
|
*/
|
|
1068
1059
|
type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | ReadonlyArray<VitestAgentReporter>;
|
|
1069
|
-
//#endregion
|
|
1070
|
-
//#region src/defaultReporter.d.ts
|
|
1071
1060
|
/**
|
|
1072
1061
|
* Build a `DispatchInputs` from a {@link ReporterRenderInput} and
|
|
1073
1062
|
* the reduced `RenderState`.
|
|
@@ -1143,8 +1132,6 @@ export declare const renderHumanStringForReport: (report: AgentReport, options?:
|
|
|
1143
1132
|
* @public
|
|
1144
1133
|
*/
|
|
1145
1134
|
export declare const DefaultVitestAgentReporter: VitestAgentReporterFactory;
|
|
1146
|
-
//#endregion
|
|
1147
|
-
//#region src/index.d.ts
|
|
1148
1135
|
/**
|
|
1149
1136
|
* The version of this package, inlined at build time from
|
|
1150
1137
|
* package.json#version via rslib-builder's __PACKAGE_VERSION__ substitution.
|
|
@@ -1153,6 +1140,5 @@ export declare const DefaultVitestAgentReporter: VitestAgentReporterFactory;
|
|
|
1153
1140
|
* @public
|
|
1154
1141
|
*/
|
|
1155
1142
|
export declare const CURRENT_REPORTER_VERSION: string;
|
|
1156
|
-
//#endregion
|
|
1157
1143
|
export type { AgentReport, CellOptions, ConsoleMode, DetailLevel, DispatchInputs, Environment, Executor, FileCoverageReport, ProjectSummary, RenderState, RenderedOutput, ReporterKit, ReporterRenderInput, ResolvedReporterConfig, ResolvedThresholds, RunEvent, RunOutcome, RunShape, TestClassification, Transport, TrendSummary, VitestAgentReporter, VitestAgentReporterFactory };
|
|
1158
1144
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForReport, renderHumanStringForReport, resolveCellOptions } from "./defaultReporter.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* The version of this package, inlined at build time from
|
|
6
6
|
* package.json#version via rslib-builder's __PACKAGE_VERSION__ substitution.
|
|
@@ -8,7 +8,6 @@ import { DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForRe
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
const CURRENT_REPORTER_VERSION = "5.0.
|
|
11
|
+
const CURRENT_REPORTER_VERSION = "5.0.8";
|
|
12
12
|
|
|
13
|
-
//#endregion
|
|
14
13
|
export { CURRENT_REPORTER_VERSION, DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForReport, renderHumanStringForReport, resolveCellOptions };
|
package/liveView.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
|
5
5
|
import { CliUi } from "@effected/cli/ui";
|
|
6
6
|
import { Cause, Deferred, Effect, Exit, Layer, PubSub, Scope } from "effect";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/liveView.ts
|
|
9
9
|
/**
|
|
10
10
|
* The `stream` console mode's live view: the plugin's run-event channel
|
|
11
11
|
* folded through `reduceRenderState` and drawn as `StreamApp` by the
|
|
@@ -117,5 +117,4 @@ const startLiveView = (channel, env = LiveViewEnv) => {
|
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
//#endregion
|
|
121
120
|
export { LiveViewEnv, liveViewOptions, printAbove, startLiveView };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/reporter",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Named VitestAgentReporterFactory implementations for the vitest-agent ecosystem.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@effect/platform-node": "^4.0.
|
|
43
|
-
"@vitest-agent/sdk": "7.0.
|
|
44
|
-
"@vitest-agent/ui": "5.0.
|
|
45
|
-
"effect": "^4.0.
|
|
42
|
+
"@effect/platform-node": "^4.0.6",
|
|
43
|
+
"@vitest-agent/sdk": "7.0.5",
|
|
44
|
+
"@vitest-agent/ui": "5.0.8",
|
|
45
|
+
"effect": "^4.0.6",
|
|
46
46
|
"ink": "^8.0.0",
|
|
47
47
|
"react": "^19.3.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@effected/cli": "^0.
|
|
51
|
-
"@effected/env": "^0.
|
|
52
|
-
"@effected/glob": "^0.
|
|
53
|
-
"@effected/walker": "^0.
|
|
50
|
+
"@effected/cli": "^0.22.0",
|
|
51
|
+
"@effected/env": "^0.5.0",
|
|
52
|
+
"@effected/glob": "^0.14.0",
|
|
53
|
+
"@effected/walker": "^0.19.0",
|
|
54
54
|
"@vitest/coverage-istanbul": "^5.0.0",
|
|
55
55
|
"@vitest/coverage-v8": "^5.0.0",
|
|
56
56
|
"vitest": "^5.0.0"
|
package/streamView.js
CHANGED
|
@@ -2,12 +2,11 @@ import { SPINNER_FRAME_MS } from "@vitest-agent/ui";
|
|
|
2
2
|
import { StreamApp } from "@vitest-agent/ui/ink";
|
|
3
3
|
import { createElement } from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/streamView.ts
|
|
6
6
|
const streamView = (state, frame) => createElement(StreamApp, {
|
|
7
7
|
state,
|
|
8
8
|
frameIndex: frame,
|
|
9
9
|
nowMs: frame * SPINNER_FRAME_MS
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
-
//#endregion
|
|
13
12
|
export { streamView as default };
|