@vitest-agent/plugin 2.0.0 → 2.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/package.json +6 -6
- package/plugin.js +1 -1
- package/tsdoc-metadata.json +1 -1
- package/utils/discover-projects.js +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vitest plugin for the vitest-agent ecosystem: owns persistence, classification, baselines, trends, and dispatches rendering to a configurable reporter.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@effect/platform-node": "4.0.0-beta.98",
|
|
43
43
|
"@effect/sql-sqlite-node": "4.0.0-beta.98",
|
|
44
|
-
"@effected/workspaces": "^0.
|
|
45
|
-
"@vitest-agent/cli": "2.0.
|
|
46
|
-
"@vitest-agent/mcp": "2.0.
|
|
47
|
-
"@vitest-agent/reporter": "2.0.
|
|
48
|
-
"@vitest-agent/sdk": "2.0.
|
|
44
|
+
"@effected/workspaces": "^0.4.0",
|
|
45
|
+
"@vitest-agent/cli": "2.0.1",
|
|
46
|
+
"@vitest-agent/mcp": "2.0.1",
|
|
47
|
+
"@vitest-agent/reporter": "2.0.1",
|
|
48
|
+
"@vitest-agent/sdk": "2.0.1",
|
|
49
49
|
"effect": "4.0.0-beta.98",
|
|
50
50
|
"magic-string": "^1.0.0"
|
|
51
51
|
},
|
package/plugin.js
CHANGED
|
@@ -98,7 +98,7 @@ const aggregatedReporterByVitest = /* @__PURE__ */ new WeakSet();
|
|
|
98
98
|
*
|
|
99
99
|
* @public
|
|
100
100
|
*/
|
|
101
|
-
const CURRENT_PLUGIN_VERSION = "2.0.
|
|
101
|
+
const CURRENT_PLUGIN_VERSION = "2.0.1";
|
|
102
102
|
const TEST_FILE_SUFFIX_RE = /\.(?:test|spec)\.(?:ts|tsx|js|jsx)$/;
|
|
103
103
|
const TEST_FILE_DIR_RE = /\/(?:src|__test__)\//;
|
|
104
104
|
const isTestFile = (id) => TEST_FILE_SUFFIX_RE.test(id) && TEST_FILE_DIR_RE.test(id);
|
package/tsdoc-metadata.json
CHANGED
|
@@ -70,10 +70,7 @@ async function discoverProjects(options) {
|
|
|
70
70
|
const strategy = options?.strategy;
|
|
71
71
|
const cwd = options?.cwd;
|
|
72
72
|
const additionalEntries = options?.additionalEntries ?? [];
|
|
73
|
-
const root = findWorkspaceRootSync(
|
|
74
|
-
...nodeSyncOps,
|
|
75
|
-
cwd: cwd ?? process.cwd()
|
|
76
|
-
});
|
|
73
|
+
const root = findWorkspaceRootSync(cwd ?? process.cwd(), nodeSyncOps);
|
|
77
74
|
if (!root) throw new Error(`[vitest-agent] Could not find workspace root from ${cwd ?? process.cwd()}. Ensure a pnpm-workspace.yaml or package.json with "workspaces" exists.`);
|
|
78
75
|
const useCache = strategy === void 0 && additionalEntries.length === 0;
|
|
79
76
|
const resolvedStrategy = strategy ?? new DefaultDiscoverStrategy();
|