@vitest-agent/reporter 6.1.1 → 6.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/githubLog.js +5 -4
- package/index.js +1 -1
- package/package.json +10 -10
package/githubLog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { summarizeProject } from "./projectSummary.js";
|
|
2
2
|
import { Doc, Fmt, Render, Status } from "@effected/cli";
|
|
3
3
|
import { formatStrayOutputNote } from "@vitest-agent/sdk";
|
|
4
|
-
import { relative } from "node:path";
|
|
4
|
+
import { relative, sep } from "node:path";
|
|
5
5
|
|
|
6
6
|
// src/githubLog.ts
|
|
7
7
|
/**
|
|
@@ -36,12 +36,13 @@ const strayOutputOf = (reports) => reports.find((report) => report.strayOutput !
|
|
|
36
36
|
/**
|
|
37
37
|
* Renders a coverage-target file path relative to `process.cwd()` for
|
|
38
38
|
* display. Falls back to the original string unchanged when the relative
|
|
39
|
-
* path is empty or escapes the root (starts with `..`
|
|
40
|
-
* printing a `../../..` chain.
|
|
39
|
+
* path is empty or escapes the root (is `..` or starts with a `..`
|
|
40
|
+
* segment) rather than printing a `../../..` chain. An in-tree name that
|
|
41
|
+
* merely begins with two dots (`..foo.ts`) stays relative.
|
|
41
42
|
*/
|
|
42
43
|
function toDisplayPath(file) {
|
|
43
44
|
const rel = relative(process.cwd(), file);
|
|
44
|
-
if (rel === "" || rel.startsWith(
|
|
45
|
+
if (rel === "" || rel === ".." || rel.startsWith(`..${sep}`)) return file;
|
|
45
46
|
return rel;
|
|
46
47
|
}
|
|
47
48
|
const NON_STABLE_CLASSIFICATIONS = [
|
package/index.js
CHANGED
|
@@ -8,6 +8,6 @@ import { DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForRe
|
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
const CURRENT_REPORTER_VERSION = "6.1.
|
|
11
|
+
const CURRENT_REPORTER_VERSION = "6.1.2";
|
|
12
12
|
|
|
13
13
|
export { CURRENT_REPORTER_VERSION, DefaultVitestAgentReporter, buildDispatchInputs, renderAgentStringForReport, renderHumanStringForReport };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/reporter",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Named VitestAgentReporterFactory implementations for the vitest-agent ecosystem.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@effect/platform-node": "
|
|
43
|
-
"@vitest-agent/sdk": "9.0.
|
|
44
|
-
"@vitest-agent/ui": "5.2.
|
|
45
|
-
"effect": "
|
|
42
|
+
"@effect/platform-node": "~4.1.1",
|
|
43
|
+
"@vitest-agent/sdk": "9.0.2",
|
|
44
|
+
"@vitest-agent/ui": "5.2.2",
|
|
45
|
+
"effect": "~4.1.1",
|
|
46
46
|
"ink": "^8.0.0",
|
|
47
47
|
"react": "^19.3.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@effected/cli": "^0.
|
|
51
|
-
"@effected/config-file": "^0.
|
|
52
|
-
"@effected/env": "^0.
|
|
53
|
-
"@effected/glob": "^0.
|
|
54
|
-
"@effected/walker": "^0.
|
|
50
|
+
"@effected/cli": "^0.25.0",
|
|
51
|
+
"@effected/config-file": "^0.23.0",
|
|
52
|
+
"@effected/env": "^0.9.0",
|
|
53
|
+
"@effected/glob": "^0.17.0",
|
|
54
|
+
"@effected/walker": "^0.24.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"@effected/config-file": {
|