Custom Test Runner
You can integrate RMP with any test runner. It requires two steps:
-
Use the
MockClientclass to define mocks.const mockClient = new MockClient(); -
Attach
mockClient.headersto the navigation request.const headers = {...mockClient.headers};// ...navigate to the page with provided headers