mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
- configured GitHub Actions workflows with configurable Node.js heap allocation, defaults to 6144 MiB - added heap usage logging for memory monitoring and debugging - increased Docker frontend build memory allocation to ensure consistent memory limits - optimized Jest timeout for tokenSplit test
20 lines
701 B
JavaScript
20 lines
701 B
JavaScript
// See .env.test.example for an example of the '.env.test' file.
|
|
require('dotenv').config({ path: './test/.env.test' });
|
|
|
|
process.env.MONGO_URI = 'mongodb://127.0.0.1:27017/dummy-uri';
|
|
process.env.BAN_VIOLATIONS = 'true';
|
|
process.env.BAN_DURATION = '7200000';
|
|
process.env.BAN_INTERVAL = '20';
|
|
process.env.CI = 'true';
|
|
process.env.JWT_SECRET = 'test';
|
|
process.env.JWT_REFRESH_SECRET = 'test';
|
|
process.env.CREDS_KEY = 'test';
|
|
process.env.CREDS_IV = 'test';
|
|
process.env.ALLOW_EMAIL_LOGIN = 'true';
|
|
|
|
// Set global test timeout to 30 seconds
|
|
// This can be overridden in individual tests if needed
|
|
jest.setTimeout(30000);
|
|
process.env.OPENAI_API_KEY = 'test';
|
|
|
|
process.env.NODE_MAX_OLD_SPACE_SIZE = '6144';
|