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:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user