From 78862ba855c6e66cac64a86c25dca6149d8fb2fd Mon Sep 17 00:00:00 2001 From: Christopher Warner Date: Sat, 10 Oct 2026 18:42:38 -0400 Subject: 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 --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index abb3fa0..c3e80b7 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3