mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(api): isolate tests from self-hosted environment 1/4 (#1408)
This commit is contained in:
@@ -32,6 +32,9 @@ function defaultNatsUrl(): string {
|
||||
}
|
||||
|
||||
function setDefaultTestEnv(): void {
|
||||
// API tests use a non-self-hosted baseline; self-hosted scenarios override the loaded config explicitly.
|
||||
process.env.FLUXER_SELF_HOSTED = 'false';
|
||||
|
||||
const natsUrl = defaultNatsUrl();
|
||||
const defaults: Record<string, string> = {
|
||||
FLUXER_ENV: 'test',
|
||||
@@ -89,7 +92,6 @@ function setDefaultTestEnv(): void {
|
||||
FLUXER_SEARCH_API_KEY: 'test',
|
||||
FLUXER_CAPTCHA_ENABLED: 'false',
|
||||
FLUXER_CAPTCHA_PROVIDER: 'none',
|
||||
FLUXER_SELF_HOSTED: 'false',
|
||||
FLUXER_DISCOVERY_ENABLED: 'true',
|
||||
FLUXER_RELAX_REGISTRATION_RATE_LIMITS: 'true',
|
||||
FLUXER_DISABLE_RATE_LIMITS: 'true',
|
||||
|
||||
Reference in New Issue
Block a user