@cldmv/vitest-runner 1.4.2 → 1.4.4
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 +14 -9
- package/bin/vitest-runner.mjs +53 -1489
- package/dist/index.cjs +21 -1389
- package/dist/index.mjs +45 -1334
- package/package.json +2 -2
- package/types/src/core/report.d.mts +16 -5
- package/types/src/utils/ansi.d.mts +29 -3
package/README.md
CHANGED
|
@@ -17,19 +17,18 @@ Sequential Vitest runner that spawns each test file in its own child process to
|
|
|
17
17
|
|
|
18
18
|
## ✨ What's New
|
|
19
19
|
|
|
20
|
-
### Latest: v1.4.
|
|
20
|
+
### Latest: v1.4.4 (September 2026)
|
|
21
21
|
|
|
22
|
-
- **
|
|
23
|
-
- **
|
|
24
|
-
-
|
|
25
|
-
- [View full v1.4.0 Changelog](https://github.com/CLDMV/vitest-runner/blob/master/docs/changelog/v1/v1.4.0.md)
|
|
22
|
+
- **Dropped the `prepack` workaround** — the underlying gap (CI's publish job invoking lifecycle scripts against a bare, already-built artifact directory) is now fixed upstream in `CLDMV/.github`, so `prepack` goes back to a plain `npm run build`.
|
|
23
|
+
- **Fixed a release-automation gap** — the release-merge gate now re-evaluates after every check-producing workflow finishes, not just CI, so an approval landing before a slower check (CodeQL and similar) can't leave a release PR stuck approved and green with nothing re-triggering the merge.
|
|
24
|
+
- [View full v1.4.4 Changelog](https://github.com/CLDMV/vitest-runner/blob/master/docs/changelog/v1/v1.4.4.md)
|
|
26
25
|
|
|
27
26
|
### Recent Releases
|
|
28
27
|
|
|
29
|
-
- **v1.
|
|
30
|
-
- **v1.
|
|
31
|
-
- **v1.
|
|
32
|
-
- **v1.
|
|
28
|
+
- **v1.4.3** (September 2026) — The published build is actually minified now, and `dist/index.cjs` is a thin shim instead of a duplicate bundle ([Changelog](https://github.com/CLDMV/vitest-runner/blob/master/docs/changelog/v1/v1.4.3.md))
|
|
29
|
+
- **v1.4.2** (September 2026) — Fixed npm publish rejecting every release over missing `repository`/`bugs`/`homepage` fields ([Changelog](https://github.com/CLDMV/vitest-runner/blob/master/docs/changelog/v1/v1.4.2.md))
|
|
30
|
+
- **v1.4.1** (September 2026) — Completed the vitest 5 upgrade, fixed the README npm badges, and fixed a `prepack` bug crashing every publish job ([Changelog](https://github.com/CLDMV/vitest-runner/blob/master/docs/changelog/v1/v1.4.1.md))
|
|
31
|
+
- **v1.4.0** (September 2026) — Real bundled `dist/`/`bin/` build, a working CLI, and a runner-owned scratch-directory lifecycle ([Changelog](https://github.com/CLDMV/vitest-runner/blob/master/docs/changelog/v1/v1.4.0.md))
|
|
33
32
|
|
|
34
33
|
---
|
|
35
34
|
|
|
@@ -300,6 +299,12 @@ This avoids the OOM crash that occurs when a single vitest process holds coverag
|
|
|
300
299
|
|
|
301
300
|
The log file path can be overridden with `--log-file <path>`. Passing `--log-file` by itself only enables log mirroring (it does not enable coverage mode).
|
|
302
301
|
|
|
302
|
+
### When no files are measured
|
|
303
|
+
|
|
304
|
+
If the coverage `include` matches no files (for example, a scaffold repo with a test but no source yet), istanbul reports every percentage as `Unknown` rather than a number. The runner prints those metrics as `Unknown` — `Coverage Unknown% lines | Unknown% statements | …` — adds a note that no files were measured, and exits `0` if the tests passed. The same applies to any individual non-numeric percentage in the worst-coverage table.
|
|
305
|
+
|
|
306
|
+
Coverage thresholds are skipped in this case, because there is nothing to measure: vitest's own threshold check does not fail on an `Unknown` percentage, and the runner does not add a check of its own. Thresholds apply again as soon as at least one file is measured. The JSON report's `coverageSummary.noFilesMeasured` is `true` for such a run.
|
|
307
|
+
|
|
303
308
|
### Producing blobs for an external merge
|
|
304
309
|
|
|
305
310
|
Set `mergeReports: false` (CLI: `--no-merge-reports`) to stop the run after the per-file blobs are written. The internal `vitest --mergeReports` call and the coverage summary are skipped, and `blobsDir` is left intact instead of being deleted. The blobs directory is still cleared at the **start** of each run, so it only ever contains the current run's output.
|