You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is still an issue and causes mocks to bleed into each other. The only solution is to re-create the instance before each test and then tear it down with destroy. Is there any appetite to apply this fix and then release it?
Hi,
I think
currentMediaQuery
should also be cleared. Otherwise, last query continues to exist until it's changed or destroyed.jest-matchmedia-mock/src/matchmedia-mock.ts
Line 96 in f45b33a
jest-matchmedia-mock/src/matchmedia-mock.ts
Lines 131 to 133 in f45b33a
The text was updated successfully, but these errors were encountered: