diff --git a/test/api.test.ts b/test/api.test.ts index 12c0342..1017b63 100644 --- a/test/api.test.ts +++ b/test/api.test.ts @@ -1,5 +1,5 @@ +import {} from 'jest'; import * as supertest from "supertest"; -import {default as app} from "../src/server"; const request = supertest("http://localhost:8000"); diff --git a/test/app.test.ts b/test/app.test.ts index e2cdc17..7a8a9ec 100644 --- a/test/app.test.ts +++ b/test/app.test.ts @@ -1,3 +1,4 @@ +import {} from 'jest'; import * as supertest from "supertest"; const request = supertest("http://localhost:8000"); diff --git a/test/contact.test.ts b/test/contact.test.ts index a280a87..c901edd 100644 --- a/test/contact.test.ts +++ b/test/contact.test.ts @@ -1,3 +1,4 @@ +import {} from 'jest'; import * as supertest from "supertest"; const request = supertest("http://localhost:8000"); @@ -6,4 +7,4 @@ describe("GET /contact", () => { request.get("/contact") .expect(200, done); }); -}); \ No newline at end of file +}); diff --git a/test/home.test.ts b/test/home.test.ts index e2c658d..1a2654a 100644 --- a/test/home.test.ts +++ b/test/home.test.ts @@ -1,3 +1,4 @@ +import {} from 'jest'; import * as supertest from "supertest"; const request = supertest("http://localhost:8000"); @@ -6,4 +7,4 @@ describe("GET /", () => { request.get("/") .expect(200, done); }); -}); \ No newline at end of file +}); diff --git a/test/user.test.ts b/test/user.test.ts index 3c96489..2fea290 100644 --- a/test/user.test.ts +++ b/test/user.test.ts @@ -1,3 +1,4 @@ +import {} from 'jest'; import * as supertest from "supertest"; const request = supertest("http://localhost:8000"); @@ -13,4 +14,4 @@ describe("GET /signup", () => { request.get("/signup") .expect(200, done); }); -}); \ No newline at end of file +});