Skip to content

Commit 24e85d8

Browse files
AdamSalehclaude
andcommitted
docs: add testing section to README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Adam Saleh <adam@asaleh.net>
1 parent fd94b45 commit 24e85d8

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,20 @@ spec:
8383
source ./contrib/oc-environment.sh
8484
./bin/bridge -plugins gitops-plugin=http://localhost:9001/
8585
```
86+
87+
## Testing
88+
89+
Unit tests use [Jest](https://jestjs.io/) with inline snapshots (`toMatchInlineSnapshot()`), so expected values live directly in the test source files.
90+
91+
```bash
92+
# Run all tests
93+
yarn test
94+
95+
# Run tests and update inline snapshots
96+
yarn test:update
97+
98+
# Run tests with coverage report
99+
yarn test:coverage
100+
```
101+
102+
When a component's rendered output or a utility's return value changes, the inline snapshots will fail. Run `yarn test:update` to accept the new output — the diff will show exactly what changed.

0 commit comments

Comments
 (0)