You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix test directory creation: ensure test-output exists before writing
Root cause: The ./test-output/ directory is gitignored, so it doesn't
exist in fresh GitHub Actions checkouts. Tests were trying to write to
this directory without creating it first, causing ENOENT errors.
Solution: Add mkdirSync('./test-output', { recursive: true }) before
each writeFileSync call in all affected test files.
Changes:
- test-latex-export-real.ts: Import mkdirSync, create dir before write
- test-latex-export-maxwell.ts: Import mkdirSync, create dir before write
- test-beamer-export.ts: Import mkdirSync, create dir before write
- test-beamer-export-maxwell.ts: Import mkdirSync, create dir before write
- test-typst-export.ts: Import mkdirSync, create dir before write
The { recursive: true } flag means:
✓ No error if directory already exists
✓ Creates parent directories if needed
✓ Makes tests self-sufficient and runnable anywhere
Verification:
- Deleted local test-output/ directory
- Ran all 5 test scripts
- All passed and created files successfully
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments