Skip to content

Commit

Permalink
add output of mock server
Browse files Browse the repository at this point in the history
  • Loading branch information
acro5piano committed Nov 24, 2022
1 parent 6a39222 commit 330e684
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/mock-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ let server: any

export function start(port = 5620) {
server = app.listen(port, () => {})
console.log(`Listeing on http://localhost:${port}`)
console.log(` - http://localhost:${port}/user`)
console.log(` - http://localhost:${port}/users/1`)
console.log(` - http://localhost:${port}/users/1/posts`)
console.log(` - http://localhost:${port}/user_with_posts`)
}

export function terminate() {
Expand Down

0 comments on commit 330e684

Please sign in to comment.