chore(test): add vitest runner + smoke test
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>
This commit is contained in:
parent
628f85a074
commit
327092c022
4 changed files with 273 additions and 0 deletions
|
|
@ -10,6 +10,8 @@
|
|||
"build": "vue-tsc -b && vite build",
|
||||
"preview": "vite preview --host",
|
||||
"analyze": "vite build --mode analyze",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"dev:events": "vite --host --config vite.events.config.ts",
|
||||
"build:events": "vue-tsc -b && vite build --config vite.events.config.ts",
|
||||
"preview:events": "vite preview --host --config vite.events.config.ts",
|
||||
|
|
@ -107,6 +109,7 @@
|
|||
"vite-plugin-image-optimizer": "^1.1.7",
|
||||
"vite-plugin-inspect": "^0.8.3",
|
||||
"vite-plugin-pwa": "^0.21.1",
|
||||
"vitest": "^4.1.9",
|
||||
"vue-tsc": "^2.2.0",
|
||||
"web-push": "^3.6.7",
|
||||
"workbox-window": "^7.3.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue