Skip to content

Commit

Permalink
Upgrade mock-socket to 9.3.1 and reenable test (#2229)
Browse files Browse the repository at this point in the history
Otherwise blocked on romgain/jest-websocket-mock#171.
  • Loading branch information
steveluscher authored Mar 2, 2024
1 parent adbd218 commit 9ce1f51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"pnpm": {
"overrides": {
"jsdom": "^22",
"mock-socket": "^9.3.0",
"mock-socket": "^9.3.1",
"shelljs": ">=0.8.5"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ describe('createWebSocketConnection', () => {
});
await expect(connectionPromise).rejects.toThrow('WebSocket failed to connect');
});
// https://github.com/thoov/mock-socket/issues/384
it.failing('throws when the connection is aborted before the connection is established', async () => {
expect.assertions(1);
it('throws when the connection is aborted before the connection is established', async () => {
expect.assertions(2);
const abortController = new AbortController();
const connectionPromise = createWebSocketConnection({
sendBufferHighWatermark: 0,
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ce1f51

Please sign in to comment.