@vitest-agent/plugin 6.0.5 → 6.0.6
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/layers/CoverageAnalyzerLive.js +5 -3
- package/package.json +10 -11
- package/utils/find-test-files.js +4 -1
- package/version.js +1 -1
|
@@ -91,13 +91,15 @@ const globCache = /* @__PURE__ */ new Map();
|
|
|
91
91
|
* never cross a slash, brace groups expand, character classes and
|
|
92
92
|
* extglobs work, and dotfiles are not matched by wildcards (issue #381).
|
|
93
93
|
* `@effected/glob` is minimatch-based and agrees with picomatch on every
|
|
94
|
-
* shape a threshold key realistically takes
|
|
95
|
-
*
|
|
94
|
+
* shape a threshold key realistically takes; `extglobBang` gives a leading
|
|
95
|
+
* `!(` picomatch's reading, the extglob rather than whole-pattern negation.
|
|
96
|
+
* A pattern that fails to compile (guard trip on an absurd input) matches
|
|
97
|
+
* nothing.
|
|
96
98
|
*/
|
|
97
99
|
function matchGlob(filePath, pattern) {
|
|
98
100
|
let compiled = globCache.get(pattern);
|
|
99
101
|
if (compiled === void 0) {
|
|
100
|
-
const result = GlobPattern.compileResult(pattern);
|
|
102
|
+
const result = GlobPattern.compileResult(pattern, { extglobBang: true });
|
|
101
103
|
compiled = Result.isSuccess(result) ? result.success : null;
|
|
102
104
|
globCache.set(pattern, compiled);
|
|
103
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/plugin",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
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,17 +44,16 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@effect/platform-node": "~4.1.2",
|
|
47
|
-
"@effected/cli-kit": "^0.
|
|
47
|
+
"@effected/cli-kit": "^0.27.0",
|
|
48
48
|
"@effected/commands": "^0.20.0",
|
|
49
|
-
"@effected/
|
|
50
|
-
"@effected/
|
|
51
|
-
"@effected/
|
|
52
|
-
"@effected/
|
|
53
|
-
"@
|
|
54
|
-
"@vitest-agent/
|
|
55
|
-
"@vitest-agent/
|
|
56
|
-
"@vitest-agent/
|
|
57
|
-
"@vitest-agent/reporter": "6.1.3",
|
|
49
|
+
"@effected/env": "^0.11.0",
|
|
50
|
+
"@effected/glob": "^0.19.0",
|
|
51
|
+
"@effected/walker": "^0.25.1",
|
|
52
|
+
"@effected/workspaces": "^0.43.0",
|
|
53
|
+
"@vitest-agent/cli": "4.1.8",
|
|
54
|
+
"@vitest-agent/engine": "3.1.2",
|
|
55
|
+
"@vitest-agent/mcp": "6.1.2",
|
|
56
|
+
"@vitest-agent/reporter": "6.1.4",
|
|
58
57
|
"@vitest-agent/sdk": "9.0.3",
|
|
59
58
|
"effect": "~4.1.2",
|
|
60
59
|
"magic-string": "^1.4.5"
|
package/utils/find-test-files.js
CHANGED
|
@@ -6,7 +6,10 @@ import { nodeWalkerSyncOps } from "@effected/walker/node-sync";
|
|
|
6
6
|
import { descendEntriesSync, descendSync } from "@effected/walker";
|
|
7
7
|
|
|
8
8
|
// src/utils/find-test-files.ts
|
|
9
|
-
const GLOB_OPTIONS = {
|
|
9
|
+
const GLOB_OPTIONS = {
|
|
10
|
+
dot: true,
|
|
11
|
+
extglobBang: true
|
|
12
|
+
};
|
|
10
13
|
/** Every file, dot entries included: the pattern the signature walk expands. */
|
|
11
14
|
const EVERY_FILE = Result.getOrThrow(GlobPattern.compileResult("**", GLOB_OPTIONS));
|
|
12
15
|
/**
|