Skip to content

Commit

Permalink
added report output route
Browse files Browse the repository at this point in the history
  • Loading branch information
balexandre committed Feb 1, 2020
1 parent 1650d37 commit 2408f0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.nyc_output
report/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "node ./server/server.js",
"test": ".\\node_modules\\.bin\\mocha --exit",
"coverage": ".\\node_modules\\.bin\\nyc npm run test"
"coverage": ".\\node_modules\\.bin\\nyc --reporter=html --report-dir=./report npm run test"
},
"keywords": [],
"author": "",
Expand Down
5 changes: 4 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const app = require("express")();
const express = require('express');
const app = express();
const readline = require('readline');
const bodyParser = require('body-parser');
const morgan = require('morgan');
Expand All @@ -13,6 +14,8 @@ app.use(morgan('dev'));
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));

// reporter route
app.use('/report-check', express.static('report'));
// service routes
app.use(API_VERSION, routes);

Expand Down

0 comments on commit 2408f0f

Please sign in to comment.