{"library":"cypress-mock-websocket-plugin","type":"library","category":null,"description":"A Cypress plugin to mock WebSocket connections using a cy.intercept-style API. Current stable version is 2.0.0. It allows defining request/response pairs that the app receives during Cypress tests, supports partial matching via ts-pattern, and works with rxjs WebSocket and Apollo GraphQL subscriptions. Key differentiators: runs on top of Cypress's built-in WebSocket communication (no separate mock server needed), supports both a custom constructor and native WebSocket API, and provides static response registration as well as dynamic request handlers.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cypress-mock-websocket-plugin","imports":["import 'cypress-mock-websocket-plugin'","cy.mockWebSocket(url, options?)","cy.mockWebSocket(url).registerSocketRequestResponse(request, response)"]},{"cmd":"yarn add cypress-mock-websocket-plugin","imports":[]},{"cmd":"pnpm add cypress-mock-websocket-plugin","imports":[]}],"homepage":"https://github.com/coco1979ka/cypress-websocket-plugin#readme","github":"https://github.com/coco1979ka/cypress-websocket-plugin","docs":null,"changelog":null,"pypi":null,"npm":"cypress-mock-websocket-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}