mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
- Replace bun:test with Vitest across all 22 test files - Create @sofa/test package with shared setup and DB test helpers - setup.ts: vi.mock for @sofa/db/client, Bun.randomUUIDv7 polyfill - db.ts: in-memory SQLite via better-sqlite3, seed helpers - Add per-project vitest configs (packages/core, apps/web) - Add root vitest.config.ts with projects and v8 coverage - Set up @vitest/browser + Playwright for web component tests - Move validateBackupDatabase from core/backup.ts to @sofa/db/client - Derive required backup tables from schema instead of hard-coded list - Update CI workflow with Playwright install and Codecov upload - Update CLAUDE.md documentation for Vitest Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33 lines
888 B
JSON
33 lines
888 B
JSON
{
|
|
"name": "@sofa/db",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
"./client": "./src/client.ts",
|
|
"./migrate": "./src/migrate.ts",
|
|
"./schema": "./src/schema.ts",
|
|
"./queries/*": "./src/queries/*.ts"
|
|
},
|
|
"scripts": {
|
|
"lint": "oxlint",
|
|
"format": "oxfmt --config ../../.oxfmtrc.json",
|
|
"format:check": "oxfmt --check --config ../../.oxfmtrc.json",
|
|
"check-types": "tsc --noEmit",
|
|
"db:generate": "bun --bun drizzle-kit generate",
|
|
"db:migrate": "bun --bun drizzle-kit migrate",
|
|
"db:push": "bun --bun drizzle-kit push",
|
|
"db:studio": "bun --bun drizzle-kit studio"
|
|
},
|
|
"dependencies": {
|
|
"@sofa/config": "workspace:*",
|
|
"@sofa/logger": "workspace:*",
|
|
"drizzle-orm": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "catalog:",
|
|
"drizzle-kit": "catalog:",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|