Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sojs/testing

metauro11MIT0.3.1-alpha.0TypeScript support: included

modern fastify (@testing)

readme

@sojs/testing

usage

import { Testing } from '@sojs/testing';
 import { HttpRequest } from "@sojs/server-request";

@Controller()
class TestController {
  @Get()
  get(req: HttpRequest) {}
}

describe("Test", () => {
  let t: Testing;

  beforeEach(async () => {
    t = Testing.create(app)
  })

  it("example", () => {

  })
})