mockttp icon indicating copy to clipboard operation
mockttp copied to clipboard

Powerful friendly HTTP mock server & proxy library

Results 42 mockttp issues
Sort by recently updated
recently updated
newest added

It's a follow-up of this ticket: https://github.com/httptoolkit/mockttp/issues/78 Now it should be possible to hide errors for example: ```ts // Hide other errors server.on('handle-error', () => {}); ``` Still needs works.

I'm trying to use MockTTP together with Cypress tests: I setup HTTP mock as described in the Browser Setup Instructions https://github.com/httptoolkit/mockttp/blob/main/docs/setup.md#browser-setup I added a "startServer.js" script, which I start before...

I don't know if this belongs here, but I need a bit of an advice and I'm having quite a hard time figuring this out as JS seems a bit...

Hi, Working on a project which requires HTTP mocking. Things works so far very well with the `mockttp`. The only thing I am struggling with right now to implement the...

Hello, I was looking at allowing different RegEx patterns in the url matching. [RegEx test cases](https://github.com/httptoolkit/mockttp/blob/04fe22edb8c69c33e227210609171f21057c1aaa/test/integration/matchers/method-path-matching.spec.ts) I see in the test cases you only run tests with direct regex expressions...

I write some tests and I cannot get the proxy gracefully shutdown. My test is very simple: ```ts it('should start the server', async () => { const server = await...

I want to know how to delay the response and how to filter the request. Example: [mock-http-server](https://github.com/spreaker/node-mock-http-server) ``` const ServerMock = require("mock-http-server"); var server = new ServerMock({ host: "localhost", port:...

Let's say that I'm using mockttp to proxy requests to example.local, which uses a self-signed certificate. During testing, the requests fail with HTTP code 502 and I receive the following...

I'd propose to make hostname a RegExp. First, to match things like: `.forHostname(/^.+?\.domain.com/)` Second, to keep up with the URL matchers (`.forGet()`, `.forPost()` etc) which can take `RegExp`. I.e. ```ts...

Currently if you need to match an URL, you have to use one of the method-specific matchers: `forGet()`, `forPost()`, etc. But when you need to match a URL for some...