1 |
|
2 | import http from 'http';
|
3 | import supertest from 'supertest';
|
4 | export { supertest };
|
5 | export type Client = supertest.SuperTest<supertest.Test>;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare function createClientForHandler(handler: (req: http.IncomingMessage, res: http.ServerResponse) => void): Client;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function createRestAppClient(app: RestApplicationLike): supertest.SuperTest<supertest.Test>;
|
19 | export interface RestApplicationLike {
|
20 | restServer: RestServerLike;
|
21 | }
|
22 | export interface RestServerLike {
|
23 | url?: string;
|
24 | rootUrl?: string;
|
25 | }
|