c595865496
- Next.js 15 + TS strict + Tailwind 4 + ESLint 9 - shadcn/ui initialized (Radix, CSS variables); cn() util - Drizzle + postgres driver + Zod; db client + schema placeholder (A2) - Vitest with passing cn() test; GitHub Actions CI - Portable container stack: multi-stage non-root Dockerfile, docker-compose (app + Postgres on host 5433) - Verified: typecheck, lint, test (3), build, docker build, HTTP 200 on :3000 - Records the 5 pre-build decisions (email-only launch, SMS deferred)
18 lines
481 B
TypeScript
18 lines
481 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import { resolve } from "path";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
// Domain logic (src/domain/**) is pure — node env is correct there.
|
|
// UI/component tests opt into jsdom per-file via `// @vitest-environment jsdom`.
|
|
environment: "node",
|
|
globals: true,
|
|
include: ["src/**/*.{test,spec}.ts", "src/**/*.{test,spec}.tsx"],
|
|
},
|
|
});
|