Skip to main content

Custom Test Runner

You can integrate RMP with any test runner. It requires two steps:

  1. Use the MockClient class to define mocks.

    const mockClient = new MockClient();
  2. Attach mockClient.headers to the navigation request.

    const headers = {
    ...mockClient.headers
    };
    // ...navigate to the page with provided headers