@vitest-agent/plugin 1.0.0 → 1.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/index.d.ts +1 -1
- package/package.json +5 -5
- package/plugin.js +1 -1
- package/utils/discover-strategy.js +2 -1
package/index.d.ts
CHANGED
|
@@ -987,7 +987,7 @@ declare function findTestFiles(dir: string, patterns: ReadonlyArray<string>): Pr
|
|
|
987
987
|
* Composition layer for a single `AgentReporter` run. Wires SQLite, migrations, and all service layers.
|
|
988
988
|
* @public
|
|
989
989
|
*/
|
|
990
|
-
declare const ReporterLive: (dbPath: string, logLevel?: LogLevel.LogLevel, logFile?: string) => Layer.Layer<import("@vitest-agent/sdk").DataStore | import("@effect/sql/SqlClient").SqlClient | CoverageAnalyzer | import("@vitest-agent/sdk").HistoryTracker | import("@vitest-agent/sdk").DataReader | import("@vitest-agent/sdk").
|
|
990
|
+
declare const ReporterLive: (dbPath: string, logLevel?: LogLevel.LogLevel, logFile?: string) => Layer.Layer<import("@vitest-agent/sdk").DataStore | import("@effect/sql/SqlClient").SqlClient | CoverageAnalyzer | import("@vitest-agent/sdk").HistoryTracker | import("@vitest-agent/sdk").DataReader | import("@vitest-agent/sdk").FormatSelector | import("@vitest-agent/sdk").ExecutorResolver | import("@vitest-agent/sdk").DetailResolver | import("@vitest-agent/sdk").EnvironmentDetector | import("@vitest-agent/sdk").OutputRenderer | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | NodeContext.NodeContext, import("@effect/sql/SqlError").SqlError | SqliteMigrator.MigrationError | import("effect/ConfigError").ConfigError, never>;
|
|
991
991
|
//#endregion
|
|
992
992
|
//#region src/services/CoverageAnalyzer.d.ts
|
|
993
993
|
interface CoverageOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.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": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@effect/rpc": "^0.75.1",
|
|
45
45
|
"@effect/sql": "^0.51.1",
|
|
46
46
|
"@effect/sql-sqlite-node": "^0.52.0",
|
|
47
|
-
"@vitest-agent/reporter": "1.0.
|
|
48
|
-
"@vitest-agent/sdk": "1.0.
|
|
47
|
+
"@vitest-agent/reporter": "1.0.1",
|
|
48
|
+
"@vitest-agent/sdk": "1.0.1",
|
|
49
49
|
"acorn": "^8.17.0",
|
|
50
50
|
"acorn-typescript": "^1.4.13",
|
|
51
51
|
"effect": "^3.21.4",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"workspaces-effect": "^1.2.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@vitest-agent/cli": "1.0.
|
|
57
|
-
"@vitest-agent/mcp": "1.0.
|
|
56
|
+
"@vitest-agent/cli": "1.0.1",
|
|
57
|
+
"@vitest-agent/mcp": "1.0.1",
|
|
58
58
|
"@vitest/coverage-istanbul": "^4.1.0",
|
|
59
59
|
"@vitest/coverage-v8": "^4.1.0",
|
|
60
60
|
"vitest": "^4.1.0"
|
package/plugin.js
CHANGED
|
@@ -91,7 +91,7 @@ const aggregatedReporterByVitest = /* @__PURE__ */ new WeakSet();
|
|
|
91
91
|
*
|
|
92
92
|
* @public
|
|
93
93
|
*/
|
|
94
|
-
const CURRENT_PLUGIN_VERSION = "1.0.
|
|
94
|
+
const CURRENT_PLUGIN_VERSION = "1.0.1";
|
|
95
95
|
/**
|
|
96
96
|
* Cross-package version drift warning state. Module-scoped so multi-project
|
|
97
97
|
* Vitest configs construct one plugin per project but only emit the
|
|
@@ -2,6 +2,7 @@ import { findTestFiles } from "./find-test-files.js";
|
|
|
2
2
|
import { Tag } from "./tag.js";
|
|
3
3
|
import { join, sep } from "node:path";
|
|
4
4
|
import { stat } from "node:fs/promises";
|
|
5
|
+
import { configDefaults } from "vitest/config";
|
|
5
6
|
|
|
6
7
|
//#region src/utils/discover-strategy.ts
|
|
7
8
|
const SETUP_EXTS = [
|
|
@@ -132,7 +133,7 @@ var DefaultDiscoverStrategy = class extends DiscoverStrategy {
|
|
|
132
133
|
const include = [];
|
|
133
134
|
if (hasSrcTests) include.push(join(input.path, "src/**/*.{test,spec}.{ts,tsx,js,jsx}"));
|
|
134
135
|
if (hasTestDirTests) include.push(join(input.path, "__test__/**/*.{test,spec}.{ts,tsx,js,jsx}"));
|
|
135
|
-
const exclude = hasTestDir ? TEST_DIR_HELPER_DIRS.map((d) => join(input.path, `__test__/${d}/**`)) : void 0;
|
|
136
|
+
const exclude = hasTestDir ? [...configDefaults.exclude, ...TEST_DIR_HELPER_DIRS.map((d) => join(input.path, `__test__/${d}/**`))] : void 0;
|
|
136
137
|
const setupFile = await detectSetupFile(input.path);
|
|
137
138
|
return {
|
|
138
139
|
extends: true,
|