headlamp 0.1.13 → 0.1.15
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 +12 -0
- package/dist/cli.cjs +565 -533
- package/dist/cli.cjs.map +4 -4
- package/dist/index.js +565 -537
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,6 +83,8 @@ npx headlamp --changed --onlyFailures
|
|
|
83
83
|
- Effects:
|
|
84
84
|
- Uses changed production files as seeds to discover related tests by import-graph.
|
|
85
85
|
- Coverage tables prioritize and annotate files related to selection/changed files.
|
|
86
|
+
- Additional flags:
|
|
87
|
+
- `--changed.depth=<n>`: cap the transitive import scan depth when refining related tests from changed production files. Default: 5. Increase to include more indirectly-related tests (slower), decrease for speed.
|
|
86
88
|
|
|
87
89
|
Examples:
|
|
88
90
|
|
|
@@ -100,6 +102,16 @@ npx headlamp --changed=branch
|
|
|
100
102
|
npx headlamp --coverage --changed=branch
|
|
101
103
|
```
|
|
102
104
|
|
|
105
|
+
Depth examples:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Scan imports up to 10 levels deep when resolving related tests for changed files
|
|
109
|
+
npx headlamp --changed=all --changed.depth=10
|
|
110
|
+
|
|
111
|
+
# With branch mode
|
|
112
|
+
npx headlamp --changed=branch --changed.depth=12
|
|
113
|
+
```
|
|
114
|
+
|
|
103
115
|
## Coverage flags
|
|
104
116
|
|
|
105
117
|
- `--coverage`: enables coverage collection and prints merged coverage output after test execution. Uses your project's Jest/Vitest setup and reads coverage JSON from Jest.
|