# TestContext Class deprecated
Module | import { TestContext } from "@tsed/testing" |
---|---|
Source | /packages/testing/src/TestContext.ts |
# Overview
class TestContext extends PlatformTest {
/**
* @deprecated Use PlatformTest.invoke instead of
*/
static invoke<T = any>(target: TokenProvider, providers?: IInvokeOptions[]): T | Promise<T>;
}
# Members
static invoke<T = any>(target: TokenProvider, providers?: IInvokeOptions[]): T | Promise<T>;
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing