Fix jwt-token
This commit is contained in:
9
server/tests/test-env.js
Normal file
9
server/tests/test-env.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// Set test environment before any modules are imported
|
||||
process.env.NODE_ENV = 'test';
|
||||
process.env.JWT_SECRET = 'test-jwt-secret-key-for-testing-only';
|
||||
process.env.DB_DIALECT = 'sqlite';
|
||||
process.env.DB_STORAGE = ':memory:';
|
||||
process.env.DB_LOGGING = 'false';
|
||||
process.env.DATABASE_URL = 'sqlite::memory:';
|
||||
|
||||
console.log('🧪 Test environment configured');
|
||||
Reference in New Issue
Block a user