Some checks failed
SourceFinder CI/CD Pipeline / Code Quality & Linting (push) Has been cancelled
SourceFinder CI/CD Pipeline / Unit Tests (push) Has been cancelled
SourceFinder CI/CD Pipeline / Security Tests (push) Has been cancelled
SourceFinder CI/CD Pipeline / Integration Tests (push) Has been cancelled
SourceFinder CI/CD Pipeline / Performance Tests (push) Has been cancelled
SourceFinder CI/CD Pipeline / Code Coverage Report (push) Has been cancelled
SourceFinder CI/CD Pipeline / Build & Deployment Validation (16.x) (push) Has been cancelled
SourceFinder CI/CD Pipeline / Build & Deployment Validation (18.x) (push) Has been cancelled
SourceFinder CI/CD Pipeline / Build & Deployment Validation (20.x) (push) Has been cancelled
SourceFinder CI/CD Pipeline / Regression Tests (push) Has been cancelled
SourceFinder CI/CD Pipeline / Security Audit (push) Has been cancelled
SourceFinder CI/CD Pipeline / Notify Results (push) Has been cancelled
- Architecture modulaire avec injection de dépendances - Système de scoring intelligent multi-facteurs (spécificité, fraîcheur, qualité, réutilisation) - Moteur anti-injection 4 couches (preprocessing, patterns, sémantique, pénalités) - API REST complète avec validation et rate limiting - Repository JSON avec index mémoire et backup automatique - Provider LLM modulaire pour génération de contenu - Suite de tests complète (Jest) : * Tests unitaires pour sécurité et scoring * Tests d'intégration API end-to-end * Tests de sécurité avec simulation d'attaques * Tests de performance et charge - Pipeline CI/CD avec GitHub Actions - Logging structuré et monitoring - Configuration ESLint et environnement de test 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
721 B
JavaScript
22 lines
721 B
JavaScript
/**
|
|
* Configuration environnement pour tests
|
|
*/
|
|
|
|
// Variables d'environnement de test
|
|
process.env.NODE_ENV = 'test';
|
|
process.env.LOG_LEVEL = 'error'; // Réduire logs en mode test
|
|
process.env.API_VERSION = 'v1';
|
|
process.env.PORT = '0'; // Port aléatoire pour tests
|
|
|
|
// Configuration test pour bases de données
|
|
process.env.TEST_DATA_PATH = './tests/fixtures';
|
|
process.env.OPENAI_API_KEY = 'test-api-key';
|
|
process.env.REDIS_URL = 'redis://localhost:6379/15'; // DB test Redis
|
|
|
|
// Désactiver certains middleware en mode test
|
|
process.env.RATE_LIMIT_SKIP = 'true';
|
|
process.env.CORS_ORIGIN = 'http://localhost';
|
|
|
|
// Configuration timeouts pour tests
|
|
process.env.REQUEST_TIMEOUT = '5000';
|
|
process.env.LLM_TIMEOUT = '10000'; |