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.
Files changed (2) hide show
  1. package/cli.js +6 -0
  2. 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++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deflake",
3
- "version": "1.2.30",
3
+ "version": "1.2.31",
4
4
  "description": "AI-powered self-healing tool for Playwright, Cypress, and WebdriverIO tests.",
5
5
  "main": "client.js",
6
6
  "bin": {