Commit b2ba0fd
fix: add warning log when Jest fails without XML output
When Jest fails early (e.g., due to import errors) and doesn't produce
XML output, the error was only logged at DEBUG level, making it hard
to diagnose issues.
This change adds WARNING level logging that includes Jest's stdout
and stderr when:
1. Jest exits with non-zero return code
2. No XML output file is created
This helps debug common issues like:
- Invalid import paths in generated tests
- Module resolution failures
- TypeScript compilation errors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7cde435 commit b2ba0fd
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
316 | 324 | | |
317 | 325 | | |
318 | 326 | | |
| |||
0 commit comments