test: split vitest into node + nuxt projects and add a Postgres harness

Component/runtime specs (*.nuxt.spec.ts) run in the Nuxt environment; all
other specs run in a plain node environment where node_modules stay external,
so native CJS deps like `pg` load correctly (the Nuxt runtime inlines them and
breaks pg's internal `class … extends Pool`). Adds tests/helpers/db.ts, which
spins up and migrates a dedicated test database for repository integration
tests, and renames the board spec to the .nuxt suffix.
This commit is contained in:
Julien Calixte
2026-05-27 23:27:55 +02:00
parent 405b929f66
commit 63f83d316a
4 changed files with 82 additions and 4 deletions