Class MockHelper

Hierarchy

  • MockHelper

Constructors

  • Parameters

    • page: Page

      reference to the playwright page

    • rootDirectory: string

      the base directory of th mock files

    • Optional dataType: "xml" | "json"

    Returns MockHelper

Properties

dataType: "xml" | "json"
page: Page
rootDirectory: string

Methods

  • Method to mock an endpoint and optional return a placed in the rootdir Default returns empty response and status code 200 can be changed via MockEndpoint object properties

    Parameters

    Returns Promise<void>

Generated using TypeDoc