generatesaas 3.7.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generators/content/AGENTS.template.md +12 -0
- package/dist/index.js +212 -160
- package/dist/skill/content/generatesaas-update/SKILL.md +121 -246
- package/dist/skill/content/generatesaas-update/scripts/classify-files.js +43 -14
- package/dist/skill/content/generatesaas-update/scripts/complete-update.js +40 -13
- package/dist/skill/content/generatesaas-update/scripts/prepare-update.js +21 -7
- package/package.json +4 -1
|
@@ -47,6 +47,18 @@ costly mistake made in this repo.
|
|
|
47
47
|
- JSDoc on exported functions/utilities; no inline comments unless asked.
|
|
48
48
|
- Prefer the shipped libs (Better Auth, Drizzle, Hono) over hand-rolling.
|
|
49
49
|
|
|
50
|
+
## Tests
|
|
51
|
+
|
|
52
|
+
`pnpm test` and `pnpm e2e:ci` are how this project is verified; nobody clicks through it by hand. Keep them trustworthy:
|
|
53
|
+
|
|
54
|
+
- Test behavior through a public seam - a function's result, rendered UI, an HTTP response. Never read a source file as text, never walk a directory to pin a file count, never assert elapsed time. The guard in `packages/e2e-support` fails these inside `pnpm test`.
|
|
55
|
+
- A convention (import boundary, banned cast) is an ESLint rule, not a test.
|
|
56
|
+
- Find UI by role, test id, or a translation key resolved through the real messages - never by an English sentence, so a copy edit cannot break a test.
|
|
57
|
+
- Fake timers for delays; no real socket where an in-memory transport exists; leave test timeouts at their defaults.
|
|
58
|
+
- Read `@repo/config` for expectations instead of hardcoding values, so a config change moves the test with it.
|
|
59
|
+
- No `skip` / `skipIf` / `only`: a case that does not apply to this build is not registered (`if (flag) { describe(...) }`).
|
|
60
|
+
- Every new test must catch a real regression. One behavior test beats five that pin implementation details.
|
|
61
|
+
|
|
50
62
|
## Don't modify
|
|
51
63
|
|
|
52
64
|
- `pnpm-lock.yaml` / `package.json` deps by hand - use `pnpm add` / `pnpm remove`.
|