Skip to content

Commit

Permalink
ci: Fix env issues in e2e tests (no-changelog) (#7719)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Nov 15, 2023
1 parent 0cebd28 commit 2844ce2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/cli/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ import { inTest, inE2ETests } from '@/constants';

if (inE2ETests) {
// Skip loading config from env variables in end-to-end tests
process.env = {
E2E_TESTS: 'true',
EXECUTIONS_PROCESS: 'main',
N8N_DIAGNOSTICS_ENABLED: 'false',
N8N_PUBLIC_API_DISABLED: 'true',
EXTERNAL_FRONTEND_HOOKS_URLS: '',
N8N_PERSONALIZATION_ENABLED: 'false',
N8N_AI_ENABLED: 'true',
};
process.env.EXECUTIONS_PROCESS = 'main';
process.env.N8N_DIAGNOSTICS_ENABLED = 'false';
process.env.N8N_PUBLIC_API_DISABLED = 'true';
process.env.EXTERNAL_FRONTEND_HOOKS_URLS = '';
process.env.N8N_PERSONALIZATION_ENABLED = 'false';
process.env.N8N_AI_ENABLED = 'true';
} else if (inTest) {
process.env.N8N_LOG_LEVEL = 'silent';
process.env.N8N_ENCRYPTION_KEY = 'test-encryption-key';
Expand Down

0 comments on commit 2844ce2

Please sign in to comment.