bivium 0.6.1 → 0.7.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 CHANGED
@@ -8,34 +8,38 @@ break, and hands those to your test runner: Vitest, Jest, Playwright,
8
8
  When it can't tell what a change touches, it runs everything,
9
9
  and says why.
10
10
 
11
- ```console
12
- $ bunx bivium plan
13
- unit tests: 3 of 12 files
14
- tests/Button.test.ts
15
- tests/Modal.test.ts
16
- tests/css/unknown.test.ts
17
- e2e tests: none
18
- ```
11
+ <picture>
12
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/plan-dark.png">
13
+ <img alt="bivium plan main on Hono, a branch that documents its cookie helper: 18 of 103 tests run for 1 changed file, counted by directory, ending Planned 18 tests in 67 ms" src="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/plan-light.png">
14
+ </picture>
15
+
16
+ That's [Hono](https://github.com/honojs/hono),
17
+ a branch that edits its cookie helper.
18
+
19
+ Piped, or with `--list`, it prints the files, one per line.
19
20
 
20
21
  **Every selection has a reason.**
21
22
  `why` shows how a change reaches a test, file by file,
22
23
  with the line that connects each one:
23
24
 
24
- ```console
25
- $ bunx bivium why e2e/accordion.test.ts
26
- e2e/accordion.test.ts
27
- └─ goto e2e/fixtures/accordion.html e2e/accordion.test.ts:13
28
- └─ html e2e/fixtures/accordion.ts e2e/fixtures/accordion.html:10
29
- └─ import e2e/fixtures/Fixture.svelte e2e/fixtures/accordion.ts:1
30
- └─ name src/index.js#AccordionItem e2e/fixtures/Fixture.svelte:2
31
- └─ export src/AccordionItem.svelte src/index.js:2
32
- ● changed
33
- ```
25
+ <picture>
26
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/why-dark.png">
27
+ <img alt="bivium why on Hono: the JWT middleware's test imports the middleware, which imports jwt.ts, which imports the changed cookie helper, each hop with the line that makes it" src="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/why-light.png">
28
+ </picture>
29
+
30
+ **It says what it can't see.**
31
+ `check` lists every file whose dependencies it can't read,
32
+ what each costs, and the fix:
33
+
34
+ <picture>
35
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/check-dark.png">
36
+ <img alt="bivium check on Hono: 1 file bivium can't follow sends 6 tests to every change, then each cause with three places and its fix, ending 4 undeclared paths in 77 ms" src="https://raw.githubusercontent.com/metonym/bivium/master/.github/assets/check-light.png">
37
+ </picture>
34
38
 
35
39
  It has no dependencies and runs on Node ≥ 22 or Bun.
36
- It started as
37
- [carbon-components-svelte](https://github.com/carbon-design-system/carbon-components-svelte)'s
38
- `test:changed`.
40
+ It started as the `test:changed` script
41
+ in
42
+ [carbon-components-svelte](https://github.com/carbon-design-system/carbon-components-svelte).
39
43
 
40
44
  ## Quick start
41
45
 
@@ -109,9 +113,8 @@ result.suites.unit; // { mode: "some", files: [...] }; result.suites.e2e is a ty
109
113
  Vitest, Jest, Playwright, pnpm workspaces, generated code
110
114
  - [CLI](https://github.com/metonym/bivium/blob/master/docs/cli.md):
111
115
  every command and option, the JSON, and reading `why`
112
- - [CI](https://github.com/metonym/bivium/blob/master/docs/ci.md):
113
- GitHub Actions, the checkout a plan needs, the cache,
114
- and what a plan costs
116
+ - [CI](https://github.com/metonym/bivium/blob/master/docs/ci.md): GitHub
117
+ Actions, the checkout a plan needs, the cache, and what a plan costs
115
118
  - [API](https://github.com/metonym/bivium/blob/master/docs/api.md):
116
119
  `plan()`, and narrowers for generated files
117
120
  - [How it works](https://github.com/metonym/bivium/blob/master/docs/how-it-works.md):