Fix jwt-token
This commit is contained in:
@@ -8,10 +8,10 @@ if (process.env.NODE_ENV !== 'test') {
|
||||
// Configure database based on environment
|
||||
let sequelize;
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
// Use SQLite in-memory database for testing
|
||||
// Use SQLite file database for testing to allow sharing between modules
|
||||
sequelize = new Sequelize({
|
||||
dialect: 'sqlite',
|
||||
storage: ':memory:',
|
||||
storage: './test.db',
|
||||
logging: false
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user