"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const code_scanner_1 = require("../walls/02-scanner/blindspots/code-scanner");
describe('scanCodebase error recovery (Unit 1.9)', () => {
    test('scanCodebase tracks hook success/failure in result', () => {
        const result = (0, code_scanner_1.scanCodebase)(process.cwd(), 'hook-recovery-test');
        expect(result.hookResults).toBeDefined();
        expect(Array.isArray(result.hookResults)).toBe(true);
    });
    test('all hooks either succeed or are tracked as failed', () => {
        const result = (0, code_scanner_1.scanCodebase)(process.cwd(), 'hook-recovery-test-2');
        const hooks = result.hookResults || [];
        for (const h of hooks) {
            expect(typeof h.ok).toBe('boolean');
            if (!h.ok) {
                expect(h.error).toBeDefined();
            }
        }
    });
});
//# sourceMappingURL=code-scanner-error-recovery.test.js.map