chore(test): add vitest runner + smoke test #124

Merged
padreug merged 1 commit from chore/vitest-setup into dev 2026-06-18 11:59:19 +00:00
Owner

No test runner existed in the repo. This adds vitest so the nostr-patterns review fixes (#121, #122) can ship with runnable unit tests.

What

  • vitest devDependency (node env, src/**/*.spec.ts discovery).
  • vitest.config.ts mirroring only the @→src alias (brand-kit aliases are build-time asset shims, omitted to keep it lean).
  • test / test:watch npm scripts.
  • A smoke test as a known-good baseline.

Merge order

Merge this first. #121 (fix/events-store-coordinate-key) and #122 (fix/monotonic-created-at) branch off this, so until this lands their PR diffs will also show these vitest files; they clean up once this merges to dev.

Precursor for the testing the review fixes carry. No runtime/bundle impact.

🤖 Generated with Claude Code

No test runner existed in the repo. This adds **vitest** so the nostr-patterns review fixes (#121, #122) can ship with runnable unit tests. ## What - `vitest` devDependency (node env, `src/**/*.spec.ts` discovery). - `vitest.config.ts` mirroring only the `@`→src alias (brand-kit aliases are build-time asset shims, omitted to keep it lean). - `test` / `test:watch` npm scripts. - A smoke test as a known-good baseline. ## Merge order **Merge this first.** #121 (`fix/events-store-coordinate-key`) and #122 (`fix/monotonic-created-at`) branch off this, so until this lands their PR diffs will also show these vitest files; they clean up once this merges to `dev`. Precursor for the testing the review fixes carry. No runtime/bundle impact. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
No test runner existed in the repo. Add vitest (node env, *.spec.ts
discovery) with a minimal config mirroring only the `@`→src alias, plus
`test`/`test:watch` scripts and a smoke test as a known-good baseline.

Precursor for the nostr-patterns review fixes (events store coordinate
keying #121, monotonic created_at #122), which ship with unit tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
padreug deleted branch chore/vitest-setup 2026-06-18 11:59:20 +00:00
Sign in to join this conversation.
No description provided.