import test from 'node:test'; import assert from 'node:assert'; import { AutoReporter } from './reporters/AutoReporter.js'; /** * TEST SIMPLE POUR DEBUGGER LA CAPTURE */ const autoReporter = new AutoReporter(); // Removed debug console.log to test real Node.js test runner output test('Simple test debug', { timeout: 5000 }, async () => { autoReporter.onTestStart('Simple test debug'); // Test simple qui passe assert.ok(true, 'Test simple'); console.log('✅ Simple test terminé'); }); test.after(() => { console.log(`DEBUG: Nombre de tests capturés: ${autoReporter.testResults.length}`); autoReporter.generateReport(); });