@eventra_dev/eventra-cli 2.0.3 → 2.0.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 +3 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<a href="https://github.com/and-1991/eventra-cli/actions/workflows/test.yml"><img alt="tests" src="https://img.shields.io/github/actions/workflow/status/and-1991/eventra-cli/test.yml?branch=main&label=tests&style=flat-square&logo=vitest&logoColor=white"></a>
|
|
11
11
|
<img alt="unit tests" src="https://img.shields.io/badge/unit-110%20passing-brightgreen?style=flat-square&logo=vitest&logoColor=white">
|
|
12
12
|
<img alt="e2e fixtures" src="https://img.shields.io/badge/e2e-12%20fixtures-brightgreen?style=flat-square">
|
|
13
|
+
<img alt="coverage" src="https://img.shields.io/badge/coverage-73.5%25%20(unit)-yellow?style=flat-square&logo=vitest&logoColor=white">
|
|
13
14
|
<img alt="node" src="https://img.shields.io/node/v/@eventra_dev/eventra-cli?style=flat-square&color=darkgreen&logo=node.js&logoColor=white">
|
|
14
15
|
<a href="https://www.typescriptlang.org/"><img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-ready-blue?style=flat-square&logo=typescript&logoColor=white"></a>
|
|
15
16
|
<img alt="license" src="https://img.shields.io/npm/l/@eventra_dev/eventra-cli?style=flat-square&color=lightgrey">
|
|
@@ -314,6 +315,8 @@ No runtime execution. No monkey-patching.
|
|
|
314
315
|
|
|
315
316
|
Two test layers, **110 unit tests + 12 e2e fixtures + 3 `check` exit-code scenarios + 1 `watch` scenario**.
|
|
316
317
|
|
|
318
|
+
**73.5% statement coverage** (58.1% branch, 83.1% function, 73.8% line — v8 provider, `pnpm test:coverage`). This measures the vitest unit layer only; the e2e/`check`/`watch` fixtures run against the compiled `dist/` binary via `tsx tests/run.ts` and aren't coverage-instrumented.
|
|
319
|
+
|
|
317
320
|
**Unit tests (vitest)** — 21 suites covering core modules:
|
|
318
321
|
|
|
319
322
|
| Module | Covers |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventra_dev/eventra-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Static analytics event extraction CLI powered by the TypeScript compiler API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"dev": "tsx src/index.ts",
|
|
30
30
|
"test": "pnpm run clean && pnpm run build && pnpm run test:unit && tsx tests/run.ts",
|
|
31
31
|
"test:unit": "vitest run",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
32
33
|
"test:e2e": "pnpm run clean && pnpm run build && tsx tests/run.ts",
|
|
33
34
|
"clean": "rm -rf dist"
|
|
34
35
|
},
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"@types/fs-extra": "^11.0.4",
|
|
46
47
|
"@types/inquirer": "^9.0.9",
|
|
47
48
|
"@types/node": "^20.0.0",
|
|
49
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
48
50
|
"cross-spawn": "^7.0.6",
|
|
49
51
|
"tsx": "^4.7.0",
|
|
50
52
|
"vitest": "^4.1.7"
|