-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
1,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import type {Config} from '@jest/types'; | ||
import type { Config } from "@jest/types"; | ||
|
||
// Sync object | ||
const config: Config.InitialOptions = { | ||
verbose: true, | ||
transform: { | ||
'^.+\\.ts?$': 'ts-jest', | ||
"^.+\\.ts?$": "ts-jest", | ||
}, | ||
// setupFilesAfterEnv: ['./tests/bootstrap.ts'] | ||
}; | ||
export default config; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import request from "supertest"; | ||
import express, { Express } from "express"; | ||
import router from "./book.router"; | ||
|
||
describe("Book", () => { | ||
let app: Express; | ||
|
||
beforeAll(() => { | ||
app = express(); | ||
app.use(express.json()); | ||
app.use("/api", router); | ||
}); | ||
|
||
it("Can get all book", async () => { | ||
|
||
}); | ||
|
||
it("Can get all book with limit 10", async () => { | ||
|
||
}); | ||
|
||
it("Can get book by author", async () => { | ||
|
||
}); | ||
|
||
it("Can add book", async () => { | ||
|
||
}); | ||
|
||
it("Can response error if create with empty body", async () => { | ||
|
||
}); | ||
}); |
Oops, something went wrong.