-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup-jest.mjs
43 lines (43 loc) · 1.8 KB
/
setup-jest.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* eslint-disable no-undef */
process.env.NODE_ENV = 'test';
process.env.MODULES_SET = 'monolith';
process.env.APP_NAME = 'NestJS API';
process.env.APP_URL = 'http://localhost:3000';
process.env.APP_PORT = '3000';
process.env.APP_DEBUG = 'false';
process.env.API_PREFIX = 'api';
process.env.APP_FALLBACK_LANGUAGE = 'en';
process.env.APP_LOG_LEVEL = 'debug';
process.env.APP_LOG_SERVICE = 'console';
process.env.APP_CORS_ORIGIN = 'http://localhost:3000,http://example.com';
process.env.DATABASE_TYPE = 'postgres';
process.env.DATABASE_HOST = 'localhost';
process.env.DATABASE_PORT = '5432';
process.env.DATABASE_USERNAME = 'postgres';
process.env.DATABASE_PASSWORD = 'postgres';
process.env.DATABASE_NAME = 'nestjs_api';
process.env.DATABASE_LOGGING = 'true';
process.env.DATABASE_SYNCHRONIZE = 'false';
process.env.DATABASE_MAX_CONNECTIONS = '100';
process.env.DATABASE_SSL_ENABLED = 'false';
process.env.DATABASE_REJECT_UNAUTHORIZED = 'false';
process.env.DATABASE_CA = '';
process.env.DATABASE_KEY = '';
process.env.DATABASE_CERT = process.env.MAIL_HOST = 'localhost';
process.env.MAIL_PORT = '1025';
process.env.MAIL_USER = 'user';
process.env.MAIL_PASSWORD = 'password';
process.env.MAIL_IGNORE_TLS = 'true';
process.env.MAIL_SECURE = 'false';
process.env.MAIL_REQUIRE_TLS = 'false';
process.env.MAIL_DEFAULT_EMAIL = '[email protected]';
process.env.MAIL_DEFAULT_NAME = 'No Reply';
process.env.MAIL_CLIENT_PORT = '1080';
process.env.AUTH_JWT_SECRET = 'secret';
process.env.AUTH_JWT_TOKEN_EXPIRES_IN = '1d';
process.env.AUTH_REFRESH_SECRET = 'secret_for_refresh';
process.env.AUTH_REFRESH_TOKEN_EXPIRES_IN = '365d';
process.env.AUTH_FORGOT_SECRET = 'secret_for_forgot';
process.env.AUTH_FORGOT_TOKEN_EXPIRES_IN = '7d';
process.env.AUTH_CONFIRM_EMAIL_SECRET = 'secret_for_confirm_email';
process.env.AUTH_CONFIRM_EMAIL_TOKEN_EXPIRES_IN = '1d';