feat: support mocking WebSocket APIs #1629
Annotations
5 errors and 2 warnings
src/core/ws/WebSocketClientManager.test.ts > adds a client from this runtime to the list of clients:
src/core/ws/WebSocketClientManager.test.ts#L33
TypeError: this.transport.addEventListener is not a function
❯ new WebSocketClientConnection node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts:44:20
❯ src/core/ws/WebSocketClientManager.test.ts:33:22
|
src/core/ws/WebSocketClientManager.test.ts > replays a "send" event coming from another runtime:
src/core/ws/WebSocketClientManager.test.ts#L76
TypeError: this.transport.addEventListener is not a function
❯ new WebSocketClientConnection node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts:44:20
❯ src/core/ws/WebSocketClientManager.test.ts:76:22
|
src/core/ws/WebSocketClientManager.test.ts > replays a "close" event coming from another runtime:
src/core/ws/WebSocketClientManager.test.ts#L102
TypeError: this.transport.addEventListener is not a function
❯ new WebSocketClientConnection node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts:44:20
❯ src/core/ws/WebSocketClientManager.test.ts:102:22
|
src/core/ws/WebSocketClientManager.test.ts > removes the extraneous message listener when the connection closes:
src/core/ws/WebSocketClientManager.test.ts#L129
TypeError: this.transport.addEventListener is not a function
❯ new WebSocketClientConnection node_modules/.pnpm/@mswjs+interceptors@0.27.1/node_modules/@mswjs/interceptors/src/interceptors/WebSocket/WebSocketClientConnection.ts:44:20
❯ src/core/ws/WebSocketClientManager.test.ts:129:22
|
build
Process completed with exit code 1.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, pnpm/action-setup@v2, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
No files were found with the provided path: test/browser/test-results. No artifacts will be uploaded.
|