Enable test reporting from jest

This commit is contained in:
R. Tyler Croy 2018-09-09 18:20:49 -07:00
parent 631aa193fc
commit f94a35cf7d
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
3 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/
node_modules/
*.sw*
coverage/

View File

@ -51,6 +51,12 @@
"winston": "^3.1.0"
},
"jest": {
"collectCoverage": true,
"coverageReporters": [
"json",
"lcov",
"text"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},

View File

@ -3,7 +3,8 @@ import request from 'request-promise';
import app from '../src/app';
const port = app.get('port') || 3030;
// Offsetting a bit to ensure that we can watch and run at the same time
const port = (app.get('port') || 3030) + 10;
const getUrl = pathname => url.format({
hostname: app.get('host') || 'localhost',
protocol: 'http',