{"library":"superwstest","type":"library","category":null,"description":"SuperWSTest (v3.0.0) extends supertest with WebSocket testing capabilities, allowing you to test WebSocket endpoints alongside HTTP endpoints using the same request-like API. It integrates seamlessly with supertest and provides methods like .ws(), .expectText(), .expectJson(), and .close(). The package ships TypeScript types, supports both local and remote servers, auto-closes connections via server.close, and offers scoped instances for parallel test isolation. Unlike raw ws integration, it provides a supertest-compatible fluent API with built-in message filtering and expectations.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","test","testing","supertest","superagent","ws","WebSocket","WebSockets","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install superwstest","imports":["import request from 'superwstest'","const request = require('superwstest').default","import request from 'superwstest'; const scoped = request.scoped()"]},{"cmd":"yarn add superwstest","imports":[]},{"cmd":"pnpm add superwstest","imports":[]}],"homepage":"https://github.com/davidje13/superwstest#readme","github":"https://github.com/davidje13/superwstest","docs":null,"changelog":null,"pypi":null,"npm":"superwstest","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}