
- API server with ChaCha20-Poly1305 encryption - TypeScript SDK client with full functionality - Complete documentation in docs/ - Environment variable processing with composite variables - HTTPS-only API on port 6666 - Storage structure for configuration files - Tests and examples included Features: - Quantum-resistant encryption (ChaCha20-Poly1305) - Variable substitution from .env files - Comprehensive TypeScript SDK - Full API documentation and specifications - Deployment guides and security model
30 lines
614 B
TypeScript
30 lines
614 B
TypeScript
/**
|
|
* Configuration des tests pour le SDK Vault Client
|
|
*/
|
|
|
|
// Configuration globale pour les tests
|
|
beforeAll(() => {
|
|
// Configuration des timeouts pour les tests
|
|
jest.setTimeout(30000);
|
|
});
|
|
|
|
beforeEach(() => {
|
|
// Reset des mocks avant chaque test
|
|
jest.clearAllMocks();
|
|
});
|
|
|
|
afterEach(() => {
|
|
// Nettoyage après chaque test
|
|
jest.restoreAllMocks();
|
|
});
|
|
|
|
// Mock des modules Node.js si nécessaire
|
|
jest.mock('crypto', () => ({
|
|
...jest.requireActual('crypto'),
|
|
createDecipher: jest.fn(),
|
|
}));
|
|
|
|
// Variables d'environnement pour les tests
|
|
process.env['NODE_ENV'] = 'test';
|
|
process.env['TZ'] = 'UTC';
|