deflake 1.2.30 → 1.2.31
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/cli.js +6 -0
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -115,6 +115,12 @@ async function analyzeAndFix(artifacts, client, argv, capturedOutput = '') {
|
|
|
115
115
|
console.log(` ${C.YELLOW}⚠️ No failure artifacts detected. Run 'npx deflake doctor' to check permissions.${C.RESET}`);
|
|
116
116
|
return 0;
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
// Debug: verify captured output content
|
|
120
|
+
const hasErrorContext = capturedOutput.includes('Error Context:');
|
|
121
|
+
const errorContextCount = (capturedOutput.match(/Error Context:/g) || []).length;
|
|
122
|
+
console.log(`${C.GRAY}📊 Captured output: ${capturedOutput.length} chars, Error Context lines: ${errorContextCount}, has 'at ': ${capturedOutput.includes(' at ')}${C.RESET}`);
|
|
123
|
+
|
|
118
124
|
console.log(`${C.BRIGHT}🔍 Analyzing ${artifacts.length} failure(s)...${C.RESET}\n`);
|
|
119
125
|
let count = 0;
|
|
120
126
|
for (let i = 0; i < artifacts.length; i++) {
|