- 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>
32 lines
1.2 KiB
JavaScript
32 lines
1.2 KiB
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert';
|
|
import { requireCommonJS } from '../_helpers/commonjs-bridge.js';
|
|
import { AutoReporter } from '../reporters/AutoReporter.js';
|
|
|
|
|
|
// Auto-Reporter Configuration
|
|
const autoReporter = new AutoReporter();
|
|
|
|
test('SelectiveEnhancement: analyzeTechnicalQuality function exists', () => {
|
|
const { analyzeTechnicalQuality } = requireCommonJS('selective-enhancement/SelectiveUtils');
|
|
|
|
// Vérifier que la fonction existe et fonctionne
|
|
assert.ok(typeof analyzeTechnicalQuality === 'function', 'analyzeTechnicalQuality existe');
|
|
|
|
const testContent = "Test content for technical analysis";
|
|
const result = analyzeTechnicalQuality(testContent);
|
|
|
|
assert.ok(typeof result === 'object', 'Retourne un objet');
|
|
assert.ok(typeof result.score === 'number', 'Contient un score numérique');
|
|
|
|
console.log('✅ Fonction analyzeTechnicalQuality validée');
|
|
});
|
|
|
|
test('SelectiveEnhancement: applySelectiveLayer exists', () => {
|
|
const { applySelectiveLayer } = requireCommonJS('selective-enhancement/SelectiveCore');
|
|
|
|
// Vérifier que la fonction principale existe
|
|
assert.ok(typeof applySelectiveLayer === 'function', 'applySelectiveLayer existe');
|
|
|
|
console.log('✅ Fonction selective layer validée correctement');
|
|
}); |