Adding support for fake context instance
When writing HTTP middleware tests, you may want the fake context to have more reliable tests. This release adds that support.
import { HttpContext } from '@poppinss/http-server'
const ctx = HttpContext.create('/user/:id', { id: 1 })
await new Middleware().handle(ctx, next)Commits:
- feat(context): support for creating fake context for testing 6c3e127
Commit Range:
v1.0.0...master