initial commit

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-08-19 02:22:37 +02:00
commit 2e6d9b4306
Se han modificado 20 ficheros con 5533 adiciones y 0 borrados

24
tests/setup.js Archivo normal
Ver fichero

@@ -0,0 +1,24 @@
// Test setup file
const fs = require('fs-extra');
const path = require('path');
const os = require('os');
// Create temporary directory for tests
global.TEST_DIR = path.join(os.tmpdir(), 'alepm-tests');
beforeEach(async () => {
await fs.ensureDir(global.TEST_DIR);
});
afterEach(async () => {
await fs.remove(global.TEST_DIR);
});
// Mock console methods to avoid noise in tests
global.console = {
...console,
log: jest.fn(),
info: jest.fn(),
warn: jest.fn(),
error: jest.fn()
};