Stratal API Reference
    Preparing search index...

    TestingModule

    Provides access to the test application, container, HTTP client, and utilities.

    const module = await Test.createTestingModule({
    modules: [RegistrationModule],
    }).compile()

    // Make HTTP requests
    const response = await module.http
    .post('/api/v1/register')
    .withBody({ ... })
    .send()

    // Access services
    const service = module.get(REGISTRATION_TOKENS.RegistrationService)

    // Cleanup
    await module.close()
    Index

    Constructors

    Accessors

    Methods

    • Execute an HTTP request through RouterService

      This is the core method - calls RouterService.fetch() directly, no SELF.fetch()

      Parameters

      • request: Request

      Returns Promise<Response>