mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
test(core): Fix cleanup in test teardown script (no-changelog) (#8361)
This commit is contained in:
@@ -14,7 +14,6 @@ if (inE2ETests) {
|
||||
process.env.N8N_AI_ENABLED = 'true';
|
||||
} else if (inTest) {
|
||||
process.env.N8N_LOG_LEVEL = 'silent';
|
||||
process.env.N8N_ENCRYPTION_KEY = 'test_key';
|
||||
process.env.N8N_PUBLIC_API_DISABLED = 'true';
|
||||
process.env.SKIP_STATISTICS_EVENTS = 'true';
|
||||
} else {
|
||||
|
||||
@@ -2,6 +2,8 @@ import { tmpdir } from 'os';
|
||||
import { join } from 'path';
|
||||
import { mkdirSync, mkdtempSync, writeFileSync } from 'fs';
|
||||
|
||||
process.env.N8N_ENCRYPTION_KEY = 'test_key';
|
||||
|
||||
const baseDir = join(tmpdir(), 'n8n-tests/');
|
||||
mkdirSync(baseDir, { recursive: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user