Sync DNS2 production changes - removed obsolete test suite and refactored structure

This commit is contained in:
Krystie
2026-03-23 10:47:15 +01:00
parent 1ac50918ab
commit d76644d948
288 changed files with 8965 additions and 15731 deletions

View File

@@ -1,21 +0,0 @@
const os = require('os');
const path = require('path');
// Use temp directory for all file-based operations during tests
const tmpDir = path.join(os.tmpdir(), 'dashcaddy-tests');
// Prevent modules from touching production files
process.env.ENCRYPTION_KEY_FILE = path.join(tmpDir, '.encryption-key');
process.env.DASHCADDY_ENCRYPTION_KEY = 'a'.repeat(64); // 32 bytes in hex for test determinism
// Suppress console output during tests (set DEBUG_TESTS=1 to enable)
if (!process.env.DEBUG_TESTS) {
global.console = {
...console,
log: jest.fn(),
warn: jest.fn(),
error: jest.fn(),
info: jest.fn(),
debug: jest.fn(),
};
}