Stratal API Reference
    Preparing search index...

    TestResponse

    Wrapper around Response with assertion methods.

    response
    .assertOk()
    .assertStatus(200)
    .assertJsonPath('data.id', userId)
    Index

    Constructors

    Accessors

    Methods

    • Assert JSON value at path matches a custom predicate.

      Parameters

      • path: string

        Dot-notation path (e.g., 'data.items')

      • matcher: (value: unknown) => boolean

        Predicate function to validate the value

      Returns Promise<TestResponse>