seo-generator-server/tests/final-verification.test.js
StillHammer 4f60de68d6 Fix BatchProcessor initialization and add comprehensive test suite
- Fix BatchProcessor constructor to avoid server blocking during startup
- Add comprehensive integration tests for all modular combinations
- Enhance CLAUDE.md documentation with new test commands
- Update SelectiveLayers configuration for better LLM allocation
- Add AutoReporter system for test automation
- Include production workflow validation tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 14:17:49 +08:00

32 lines
974 B
JavaScript

import test from 'node:test';
import assert from 'node:assert';
import { AutoReporter } from './reporters/AutoReporter.js';
/**
* FINAL VERIFICATION - Test simple qui passe pour vérifier capture
*/
const autoReporter = new AutoReporter();
test('Test qui passe', { timeout: 5000 }, async () => {
autoReporter.onTestStart('Test qui passe');
// Test simple qui réussit
assert.ok(true, 'Ce test doit passer');
});
test('Test qui echoue', { timeout: 5000 }, async () => {
autoReporter.onTestStart('Test qui echoue');
// Test qui échoue pour tester la capture des échecs
assert.ok(false, 'Ce test doit échouer');
});
test.after(async () => {
// Attendre que Node.js test runner termine d'afficher les résultats
await new Promise(resolve => setTimeout(resolve, 100));
console.log(`DEBUG: Tests capturés: ${autoReporter.testResults.length}`);
console.log(`DEBUG: LLM calls: ${autoReporter.llmCalls.length}`);
autoReporter.generateReport();
});