idea-at
    Preparing search index...

    Function mockJSONResponse

    • Mocks an API JSON response for a specific route

      Parameters

      • page: Page

        The Playwright Page object

      • path: string

        The API path/route to mock

      • status: number

        The HTTP status code to return

      • data: any

        The response data to return (object or array)

      Returns Promise<void>

      Promise that resolves when the mock is set up