diff options
| author | Christopher Warner <cwarner@kernelcode.com> | 2026-10-10 18:42:38 -0400 |
|---|---|---|
| committer | Christopher Warner <cwarner@kernelcode.com> | 2026-10-10 18:42:38 -0400 |
| commit | 78862ba855c6e66cac64a86c25dca6149d8fb2fd (patch) | |
| tree | 8259c5337ba7ef0e08ea25f720770ac79510573c /README.md | |
| parent | 50b9b2b4c0db6a5e1d9dd511d062d99ae2e11dd3 (diff) | |
| download | iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.tar.gz iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.tar.bz2 iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.tar.xz iphone-notes-78862ba855c6e66cac64a86c25dca6149d8fb2fd.zip | |
test: cover helpers, dry-run CLI, and conventional commits
Extract pure note helpers for unit tests, add ICLOUD_NOTES_DRY_RUN so create
and status can be exercised without Chromium, and gate git history on
Conventional Commits 1.0.0 subjects.
Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -45,9 +45,19 @@ Runtime config (not in git): ## Tests ```bash -./tests/cli.test.sh +npm test +# or +./tests/run.sh ``` +Covers: + +- Pure helpers (`tests/helpers.test.mjs`) — note formatting, auth heuristics, argv, Conventional Commits subjects +- CLI dry-run (`tests/cli.test.sh`) — help, create/status/login without a browser (`ICLOUD_NOTES_DRY_RUN=1`) +- Git history (`tests/conventional-commits.test.sh`) — every commit subject matches Conventional Commits 1.0.0 + +Live Apple create/status (real headless Chromium) is manual after `icloud-note login`. + ## License MIT |
