/** * 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';