Offir Golan

Results 156 comments of Offir Golan

I'd like to bump this thread as I'm seeing the same issue using Cypress. ```js const response = await this.nativeFetch.apply(context, [ pollyRequest.url, { ...options, method: pollyRequest.method, headers: pollyRequest.headers, body: pollyRequest.body...

You should be able to do this via the following: ```js server .any() .filter(req => req.hostname === 'localhost') .passthrough(); ``` If you're only dealing with a single host, you can...

@gribnoysup I wonder if this is an issue caused by the jasmine setup done in setup-polly-jest? Have you run into this sort of issue before?

If the API/UI contract is made available over a network call, you should be able to just use Polly directly. This is a great idea though and deserves some investigation...

@adguy360 if you can create a reproduction of what you're seeing, we'd be better able to help you.

The request id that is associated with each HAR entry is required to determine which entry belongs to which request as multiple configuration options can dictate how they are matched....

> So dev-A might be using the user1 in his test config and dev-B might be using user2 but since pollyjs ignores those things with matchRequestsBy anything recorded by dev-B...

> Couldn't the id be generated when pollyjs starts instead of hard coding it when saving the har file? They already are. The ID is generated every time a request...

@skimi would you mind sharing the script you wrote up to do this?

@rahilvora any updates on this or should I take this up?