MCPcopy
hub / github.com/mswjs/msw / resetState

Method resetState

test/support/WebSocketServer.ts:51–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 public resetState(): void {
52 this.closeAllClients()
53 this.removeAllListeners()
54 }
55
56 public closeAllClients(): void {
57 this.clients.forEach((client) => {

Calls 2

closeAllClientsMethod · 0.95
removeAllListenersMethod · 0.80

Tested by

no test coverage detected