Fix jwt-token

This commit is contained in:
2025-09-15 05:31:20 +02:00
parent c3c3de43ee
commit 2aa965b13e
3 changed files with 12 additions and 5 deletions

9
server/tests/test-env.js Normal file
View 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');