Skip to content

Commit

Permalink
removed testing of db
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeRenton committed Apr 30, 2024
1 parent f7cb7ce commit 07790f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/__tests__/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require('path');
const express = require('express');
const boardRoutes = require('../routes/boardRoutes');


// Import the Express app
const createApp = require('../server');

Expand Down
3 changes: 3 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ app.get(reactRoutes, (req, res) => {
});

// Start the server

if (process.env.NODE_ENV !== 'test') {
app.listen(port, () => {
console.log(`Server is running on port ${port}`);
});
}

0 comments on commit 07790f5

Please sign in to comment.