Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: stabilize repair lifecycle on Windows

Affaan Mustafabf1773796930
diff --git a/eslint.config.js b/eslint.config.js
index acb4b672e..4d86fbefe 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -3,7 +3,7 @@ const globals = require('globals');
module.exports = [
{
- ignores: ['.opencode/dist/**', '.cursor/**', 'node_modules/**']
+ ignores: ['.opencode/dist/**', '.cursor/**', 'node_modules/**', '.venv/**', 'venv/**', 'coverage/**']
},
js.configs.recommended,
{
diff --git a/tests/scripts/repair.test.js b/tests/scripts/repair.test.js
index 98a22573a..cbd80a15e 100644
--- a/tests/scripts/repair.test.js
+++ b/tests/scripts/repair.test.js
@@ -12,6 +12,7 @@ const INSTALL_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'install-appl
const DOCTOR_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'doctor.js');
const REPAIR_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'repair.js');
const REPO_ROOT = path.join(__dirname, '..', '..');
+const CLI_TIMEOUT_MS = 30000;
const CURRENT_PACKAGE_VERSION = JSON.parse(
fs.readFileSync(path.join(REPO_ROOT, 'package.json'), 'utf8')
).version;
@@ -51,7 +52,7 @@ function runNode(scriptPath, args = [], options = {}) {
env,
encoding: 'utf8',
stdio: ['pipe', 'pipe', 'pipe'],
- timeout: 10000,
+ timeout: options.timeout || CLI_TIMEOUT_MS,
});
return { code: 0, stdout, stderr: '' };
@@ -59,7 +60,7 @@ function runNode(scriptPath, args = [], options = {}) {
return {
code: error.status || 1,
stdout: error.stdout || '',
- stderr: error.stderr || '',
+ stderr: error.stderr || error.message || '',
};
}
}