mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
fix jest
This commit is contained in:
9
app.js
9
app.js
@@ -48,8 +48,11 @@ app.use((error, req, res, next) => {
|
||||
next(error);
|
||||
});
|
||||
|
||||
const server = app.listen(config.app.port, () => {
|
||||
console.log('Started!');
|
||||
});
|
||||
const server =
|
||||
process.env.NODE_ENV !== 'TEST' || process.env.NODE_ENV !== 'test'
|
||||
? app.listen(config.app.port, () => {
|
||||
console.log('Started!');
|
||||
})
|
||||
: app;
|
||||
|
||||
module.exports = server;
|
||||
|
||||
Reference in New Issue
Block a user