NEVER EDIT GENERATED FILES
- Any file in
__tests__/fixtures/*/modules/directories is GENERATED - These files are created by generator scripts and should NEVER be manually edited
- If there are issues with generated files, fix the generator code, not the generated output
- Always regenerate fixtures using the appropriate pnpm scripts after fixing generators
Generated file patterns to NEVER edit:
src/extensions/DocumentBuilder/__tests__/fixtures/*/modules/*.ts- Any file that has been marked as generated or comes from a generator script
When using Ts.Assert in test files (.test-d.ts):
- Use alias at module top:
const A = Ts.Assert - Single-line format for short assertions:
A.exact.ofAs<string>().onAs<Type>()
- Multi-line format when combined expected + actual types visually exceed ~50 characters:
A.sub.ofAs<LongExpectedType>() .onAs<LongActualType>()
- Indentation rule: Align the
.onAsdot with the.ofAsdot- Count characters in prefix (e.g.,
A.sub.= 5 chars) - Use that many spaces before
.onAs - Examples:
A.exact.→ 7 spaces before.onAsA.sub.→ 5 spaces before.onAsA.equiv.→ 7 spaces before.onAsA.awaited.exact.→ 15 spaces before.onAs
- Count characters in prefix (e.g.,