1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 20:27:37 +00:00

separate server binding to port from other app config

this seems a bit crude but allows running the tests and having them take
care of setting up the port to use
This commit is contained in:
Daniel Temme
2017-08-19 16:12:45 +02:00
committed by Bowden
parent ff6d059921
commit 75d72df881
7 changed files with 11 additions and 143 deletions

View File

@@ -1,7 +1,7 @@
import {} from "jest";
import * as supertest from "supertest";
const request = supertest("http://localhost:3000");
const app = require("../src/app");
const request = supertest(app);
describe("GET /api", () => {
const request = supertest(app);