Skip to content

Commit

Permalink
chore: minor file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke committed Nov 7, 2021
1 parent 332547e commit 43afb86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions server/serverTest.js → __tests__/serverTest-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
require('dotenv').config();
const log = require('loglevel');

const app = require('./app');
const app = require('../server/app');

const port = process.env.NODE_PORT || 3006;
const seed = require('../__tests__/seed-example');
const seed = require('./seed-example');
// set the log level
require('./setup');
require('../server/setup');

app.listen(port, async () => {
log.info(`listening on port:${port}`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "npm run test-unit; npm run test-integration;npm run test-repository",
"test-unit": "NODE_ENV=test mocha -r dotenv/config dotenv_config_path=.env.test --exit ./server/models/**/*.spec.js ./server/routes/**/*.spec.js",
"test-repository": "NODE_ENV=test mocha -r dotenv/config --exit ./server/repositories/**/*.spec.js",
"server-test": "DEBUG=express:* NODE_LOG_LEVEL=debug nodemon server/serverTest.js",
"server-test": "DEBUG=express:* NODE_LOG_LEVEL=debug nodemon './__tests__/serverTest.js'",
"server": "nodemon server/server.js",
"test-integration": "NODE_ENV=test mocha -r dotenv/config dotenv_config_path=.env.test --exit --timeout 20000 './__tests__/api-tests'",
"prettier-fix": "prettier ./ --write",
Expand Down

0 comments on commit 43afb86

Please sign in to comment.