vitest-auto-spy 2.0.3 → 3.0.0
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/README.md +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -108,10 +108,16 @@ npm i -D vitest-auto-spy
|
|
|
108
108
|
| Tool | Minimum |
|
|
109
109
|
| ---------- | -------------------------------------------------------------- |
|
|
110
110
|
| Node.js | ≥ 18 |
|
|
111
|
-
| Vitest | ≥ 1
|
|
111
|
+
| Vitest | ≥ 2.1 (required peer) |
|
|
112
112
|
| Bun | ≥ 1.4 for `vitest-auto-spy/bun-angular`; any recent Bun for `vitest-auto-spy/bun` |
|
|
113
113
|
| TypeScript | ≥ 4.7 for the typed helpers (plain JS works too, just untyped) |
|
|
114
114
|
|
|
115
|
+
Vitest **≥ 2.1** because the typed `spy.method.mock.settledResults` surface is Vitest's own `Mock`
|
|
116
|
+
type, and `@vitest/spy` only grew `settledResults` in 2.0 — 2.1 is where the 2.x line actually sits.
|
|
117
|
+
The runtime helpers themselves still run on older Vitest (the library polyfills `settledResults` for
|
|
118
|
+
`bun:test` and `node:test` regardless), but the types no longer line up there, so the range stops
|
|
119
|
+
claiming it.
|
|
120
|
+
|
|
115
121
|
Ships **ESM with bundled `.d.ts` types**. Two subpaths additionally ship a CommonJS build —
|
|
116
122
|
`vitest-auto-spy/node` (a `node --test` suite written in CJS) and `vitest-auto-spy/eslint-plugin`
|
|
117
123
|
(loaded by a CommonJS `eslint.config.cjs`). Everything else is ESM-only, because a `require()` of it
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest-auto-spy",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Auto-generate fully-typed test spies from a class — across Vitest, Bun and node:test, with NestJS/React/Vue/Svelte/Angular recipes. Drop-in replacement for jest-auto-spies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auto-mock",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"peerDependencies": {
|
|
192
192
|
"@angular/core": ">=16.0.0",
|
|
193
193
|
"rxjs": ">=7.0.0",
|
|
194
|
-
"vitest": ">=1.0
|
|
194
|
+
"vitest": ">=2.1.0"
|
|
195
195
|
},
|
|
196
196
|
"peerDependenciesMeta": {
|
|
197
197
|
"@angular/core": {
|