Enable test reporting from jest
This commit is contained in:
parent
631aa193fc
commit
f94a35cf7d
|
@ -1,3 +1,4 @@
|
|||
build/
|
||||
node_modules/
|
||||
*.sw*
|
||||
coverage/
|
||||
|
|
|
@ -51,6 +51,12 @@
|
|||
"winston": "^3.1.0"
|
||||
},
|
||||
"jest": {
|
||||
"collectCoverage": true,
|
||||
"coverageReporters": [
|
||||
"json",
|
||||
"lcov",
|
||||
"text"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
},
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue