1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 16:17: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
parent 7b1cae5725
commit 4eb0962a7b
7 changed files with 149 additions and 141 deletions

View File

@@ -1,6 +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 /login", () => {
it("should return 200 OK", () => {