mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-09 08:08:16 +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,5 +1,6 @@
|
||||
import * as supertest from "supertest";
|
||||
const request = supertest("http://localhost:3000");
|
||||
const app = require("../src/app");
|
||||
const request = supertest(app);
|
||||
|
||||
describe("GET /", () => {
|
||||
it("should return 200 OK", () => {
|
||||
|
||||
Reference in New Issue
Block a user