TypeError: socket.getPeerX509Certificate is not a function #2416
-
it seems this library mocks all requests not only those, I want to intercept. This is an issue for me because I start local https server which I want to test. I needs to return me real X509 certificate for testing. But I need to mock one request to external API which helps me to validate returned X509 certificate And when I start my test with msw, I receive
Is there a way to mock only 1 particular request an leave others as is? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, @stalniy. Thanks for raising this. It's a bug related in compatibility to mswjs/interceptors#675.
MSW does precisely that. It does that by integrating into all requests and implementing passthrough by default. What you are encountering is a bug, and I hope we will address it soon. Your expectations of the library are correct. |
Beta Was this translation helpful? Give feedback.
Hi, @stalniy. Thanks for raising this. It's a bug related in compatibility to mswjs/interceptors#675.
MSW does precisely that. It does that by integrating into all requests and implementing passthrough by default. What you are encountering is a bug, and I hope we will address it soon. Your expectations of the library are correct.