vitest-auto-spy 5.59.0 → 5.59.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/CHANGELOG.md CHANGED
@@ -10,6 +10,8 @@ The latest released version here must always match the one published on
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [5.59.1] - 2026-09-30
14
+
13
15
  ## [5.59.0] - 2026-09-30
14
16
 
15
17
  ### Added
@@ -27,6 +29,10 @@ The latest released version here must always match the one published on
27
29
 
28
30
  ### Fixed
29
31
 
32
+ - **A repeated list flag adds up instead of keeping only the last value.** `doctor --ignore a
33
+ --ignore b` used to ignore only `b`, so a wrapper passing one `--ignore` per check silently
34
+ reported the first one again. `--ignore`, `--only`, `--gate-only` and `--related` now join every
35
+ occurrence; a comma-separated value still works.
30
36
  - **`no-inline-test-data` asks for a spec-local `const` when the part of a long expected value it
31
37
  names is written only once.** It used to send that part to a `*.mock.ts` file, a file of its own
32
38
  for a value one test uses. A part the file writes again still goes to the mock file.
@@ -6819,7 +6825,8 @@ moved under 1 %: `/angular` +192 B (+1.0 %) for the override queue and the HTTP
6819
6825
  This copy ships with the package and carries 5.x only. Releases before 5.0.0 are in the
6820
6826
  [full changelog](https://github.com/ASDAlexey/vitest-auto-spy/blob/master/CHANGELOG.md).
6821
6827
 
6822
- [Unreleased]: https://github.com/ASDAlexey/vitest-auto-spy/compare/v5.59.0...HEAD
6828
+ [Unreleased]: https://github.com/ASDAlexey/vitest-auto-spy/compare/v5.59.1...HEAD
6829
+ [5.59.1]: https://github.com/ASDAlexey/vitest-auto-spy/compare/v5.59.0...v5.59.1
6823
6830
  [5.59.0]: https://github.com/ASDAlexey/vitest-auto-spy/compare/v5.58.0...v5.59.0
6824
6831
  [5.58.0]: https://github.com/ASDAlexey/vitest-auto-spy/compare/v5.57.0...v5.58.0
6825
6832
  [5.57.0]: https://github.com/ASDAlexey/vitest-auto-spy/compare/v5.56.0...v5.57.0
package/dist/cli.js CHANGED
@@ -37,6 +37,7 @@ var VALUE_FLAGS = /* @__PURE__ */ new Set([
37
37
  "target",
38
38
  "top"
39
39
  ]);
40
+ var LIST_FLAGS = /* @__PURE__ */ new Set(["gate-only", "ignore", "only", "related"]);
40
41
  var OPTIONAL_VALUE_FLAGS = /* @__PURE__ */ new Set(["changed"]);
41
42
  var ALIASES = { h: "help", v: "version" };
42
43
  function normalizeName(raw) {
@@ -45,6 +46,10 @@ function normalizeName(raw) {
45
46
  }
46
47
  function parseArgs(argv) {
47
48
  const flags = {};
49
+ const setValue = (name2, value) => {
50
+ const previous = flags[name2];
51
+ flags[name2] = LIST_FLAGS.has(name2) && typeof previous === "string" ? `${previous},${value}` : value;
52
+ };
48
53
  const positionals = [];
49
54
  let command;
50
55
  let consumed = false;
@@ -67,12 +72,12 @@ function parseArgs(argv) {
67
72
  const [rawName, inlineValue] = splitInline(token);
68
73
  const name2 = normalizeName(rawName);
69
74
  if (inlineValue !== void 0) {
70
- flags[name2] = inlineValue;
75
+ setValue(name2, inlineValue);
71
76
  continue;
72
77
  }
73
78
  const next = own[index + 1];
74
79
  if (VALUE_FLAGS.has(name2) && next !== void 0 && (!next.startsWith("-") || /^-\d/.test(next))) {
75
- flags[name2] = next;
80
+ setValue(name2, next);
76
81
  consumed = true;
77
82
  continue;
78
83
  }
@@ -1662,7 +1667,7 @@ function foreignPragmaPass() {
1662
1667
  }
1663
1668
 
1664
1669
  // src/cli/checks/export-map.generated.ts
1665
- var EXPORT_MAP_VERSION = "5.58.0";
1670
+ var EXPORT_MAP_VERSION = "5.59.0";
1666
1671
  var ENTRY_SPECIFIERS = "vitest-auto-spy vitest-auto-spy/bun vitest-auto-spy/bun-angular vitest-auto-spy/node vitest-auto-spy/rstest vitest-auto-spy/rxjs vitest-auto-spy/console vitest-auto-spy/dom-stubs vitest-auto-spy/diagnostics vitest-auto-spy/jasmine vitest-auto-spy/jasmine-compat vitest-auto-spy/observer-spy vitest-auto-spy/angular vitest-auto-spy/angular/diagnostics vitest-auto-spy/angular/doubles vitest-auto-spy/angular/matchers vitest-auto-spy/angular-http vitest-auto-spy/angular-router vitest-auto-spy/signal-forms vitest-auto-spy/nestjs vitest-auto-spy/react vitest-auto-spy/vue vitest-auto-spy/svelte vitest-auto-spy/setup vitest-auto-spy/zone vitest-auto-spy/eslint-plugin vitest-auto-spy/perf-reporter";
1667
1672
  var EXPORTED_BY = {
1668
1673
  AccessorImplementations: "0 1 2 3 4 12 20 21 22",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-auto-spy",
3
- "version": "5.59.0",
3
+ "version": "5.59.1",
4
4
  "description": "Auto-generate fully-typed test spies from a class — across Vitest, Bun, node:test and Rstest, with Angular/NestJS/React/Vue/Svelte recipes. Drop-in replacement for jest-auto-spies and jasmine-auto-spies.",
5
5
  "keywords": [
6
6
  "auto-mock",