{"library":"vitest-websocket-mock","type":"library","category":null,"description":"A mock WebSocket server for Vitest tests, forked from jest-websocket-mock. Current stable version is 0.5.0. It provides a WS class to create mock servers, track messages, and send responses, with Vitest-specific matchers and helpers. Works with Vitest >=3 and TypeScript types are included. Key differentiators: seamless Vitest integration (no Jest dependency), supports jsonProtocol, and includes async promises (connected, nextMessage, closed) for precise test timing.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","vitest","websocket","mock","unit-testing","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install vitest-websocket-mock","imports":["import WS from 'vitest-websocket-mock'","import type WS from 'vitest-websocket-mock'","import WS from 'vitest-websocket-mock'; WS.clean()"]},{"cmd":"yarn add vitest-websocket-mock","imports":[]},{"cmd":"pnpm add vitest-websocket-mock","imports":[]}],"homepage":"https://github.com/akiomik/vitest-websocket-mock#readme","github":"https://github.com/akiomik/vitest-websocket-mock","docs":null,"changelog":null,"pypi":null,"npm":"vitest-websocket-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}