Skip to content

Releases: romgain/jest-websocket-mock

v2.5.0

10 Sep 14:33
Compare
Choose a tag to compare

Feature

Upgrade mock-socket to 9.3.0 (@steveluscher)

v2.4.1

02 Aug 18:34
Compare
Choose a tag to compare

Fix

Fixes an issue where using the toReceiveMessage helper would leave open handles (@valainisgt)

v2.4.0

06 Aug 17:03
Compare
Choose a tag to compare

## New feature

Add ability to pass close options to server.error (@mykejnr)

v2.3.0

19 Jan 13:29
Compare
Choose a tag to compare

New features

  • Added support for custom timeouts to toReceiveMessage (thank you @zouxuoz!)

Node.is support

⚠️ From this version onwards, only Node.is 14 or later is supported

v2.2.0

13 Sep 11:50
Compare
Choose a tag to compare

New features

v2.1.0

15 Jul 18:12
Compare
Choose a tag to compare

Feature

  • Automatically wrap relevant methods in act

If @testing-library/react is already installed,
we use their implementation of act - it's complete
and provides useful warnings.
If it's not installed, then we simply assume that the user
is not testing a React application, and use a noop instead.

v2.0.2

15 Jul 18:13
Compare
Choose a tag to compare

Bugfixes

  • Fix an issue that caused close callbacks to be called twice

v2.0.1

08 Jan 18:54
Compare
Choose a tag to compare

Bugfixes

  • Fixes some TypeScript type definitions

v2.0.0

12 Nov 09:25
Compare
Choose a tag to compare

Breaking Change

v1.5.1

14 Oct 17:39
Compare
Choose a tag to compare

Bugfixes

  • TS only: fixed the type definition of the toReceiveMessage jest matcher.