(...gateways: any[])
| 11 | import { WsPathGateway2 } from '../src/ws-path2.gateway'; |
| 12 | |
| 13 | async function createNestApp(...gateways: any[]): Promise<INestApplication> { |
| 14 | const testingModule = await Test.createTestingModule({ |
| 15 | providers: gateways, |
| 16 | }).compile(); |
| 17 | const app = testingModule.createNestApplication(); |
| 18 | app.useWebSocketAdapter(new WsAdapter(app) as any); |
| 19 | return app; |
| 20 | } |
| 21 | |
| 22 | describe('WebSocketGateway (WsAdapter)', () => { |
| 23 | let ws: WebSocket, ws2: WebSocket, app: INestApplication; |
no test coverage detected