pour application android simpl-liste
- TypeScript 78.5%
- JavaScript 19.3%
- Python 2%
- Dockerfile 0.1%
- CSS 0.1%
The ownership checks added for #142 were only proven by benches kept out of the repo: removing one left `npm test` green. route.test.ts runs the real POST handler against PGlite (in-memory Postgres, migrations 0000-0002 applied) with two accounts: an initialMerge batch, userId and other forbidden keys in data, task-tag links, task listId/parentId, and list creation with an id held by another account. Each of the 11 route guards, when removed, turns 1 to 4 tests red; 12 of 14 fail on master's route. PGlite is installed under the npm alias `electric-sql-pglite`. Under its real name it satisfies drizzle-orm's optional peer, npm then counts it in the production tree and `npm ci --omit=dev` would ship 35 MB in the image. vitest.config.mts maps the real name to the alias and inlines drizzle-orm so its pglite driver picks it up. Refs #142 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .vscode | ||
| app | ||
| assets | ||
| patches | ||
| scripts | ||
| src | ||
| tests | ||
| web | ||
| .gitignore | ||
| app.json | ||
| babel.config.js | ||
| CLAUDE.md | ||
| drizzle.config.ts | ||
| eas.json | ||
| index.js | ||
| masterplan.md | ||
| metro.config.js | ||
| nativewind-env.d.ts | ||
| package-lock.json | ||
| package.json | ||
| REVIEW.md | ||
| SECURITY.md | ||
| spec-simpl-liste-web.md | ||
| sql-transformer.js | ||
| STATE.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||