supertest#SuperTest TypeScript Examples
The following examples show how to use
supertest#SuperTest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: supertest.utils.ts From rest-api.ts with MIT License | 6 votes |
agent: SuperTest<Test> = supertest(server.build())
Example #2
Source File: test_utils.ts From nestjs-angular-starter with MIT License | 6 votes |
/**
* Returns a supertest request with an already open nest app. Use this
* for your api testing\e2e.
*/
export async function getRequest(): Promise<SuperTest<request.Test>> {
const app = await getNestApp();
return request(app.getHttpServer());
}
Example #3
Source File: author.test.ts From mikro-orm-graphql-example with MIT License | 5 votes |
request: SuperTest<Test>
Example #4
Source File: book.test.ts From mikro-orm-graphql-example with MIT License | 5 votes |
request: SuperTest<Test>
Example #5
Source File: sample.test.ts From mikro-orm-graphql-example with MIT License | 5 votes |
request: SuperTest<Test>