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 --- tests/run.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/run.sh (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh new file mode 100755 index 0000000..6d845df --- /dev/null +++ b/tests/run.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# Full test suite for iphone-notes. +set -euo pipefail +ROOT="$(cd "$(dirname "$0")/.." && pwd)" +cd "$ROOT" + +echo "== helpers (node:test) ==" +node --test tests/helpers.test.mjs + +echo "== cli ==" +./tests/cli.test.sh + +echo "== conventional commits ==" +./tests/conventional-commits.test.sh + +echo "All tests passed." -- cgit v1.2.3