mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Authenticated specs need a deterministic user and a persistent session cookie. global-setup.ts upserts an `e2e-tester` admin via raw `pg` (the generated Prisma client uses ESM `import.meta.url`, which Playwright's TS loader cannot resolve), then logs the user in once and writes `storageState.json` so every authenticated spec reuses the same session — the per-IP login rate-limit (5 attempts / 15 min) would otherwise lock out the suite the moment six specs run in parallel. Adds `pg` + `@types/pg` as devDependencies — required for the seed step. `pg` is already used by `scripts/seed-demo.ts` for the same loader-incompatibility reason, so we're not introducing a new dependency footprint, only making it explicit in the lockfile. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
55 lines
608 B
Plaintext
55 lines
608 B
Plaintext
# dependencies
|
|
/node_modules
|
|
/.pnp
|
|
.pnp.*
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/versions
|
|
|
|
# testing
|
|
/coverage
|
|
|
|
# playwright e2e
|
|
/test-results
|
|
/playwright-report
|
|
/playwright/.cache
|
|
/e2e/setup/storageState.json
|
|
|
|
# next.js
|
|
/.next/
|
|
/out/
|
|
|
|
# production
|
|
/build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# env files
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# typescript
|
|
*.tsbuildinfo
|
|
next-env.d.ts
|
|
|
|
# prisma generated
|
|
/src/generated/prisma
|
|
|
|
# AI session artefacts (kept locally, not committed)
|
|
/docs/superpowers/
|
|
.claude/
|
|
.cursor/
|
|
.codex/
|
|
.aider*
|