Skip to content

Commit

Permalink
Remove messageChannel mock
Browse files Browse the repository at this point in the history
  • Loading branch information
idastambuk committed Dec 13, 2024
1 parent c88e609 commit 7b67334
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions jest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,3 @@ global.TextDecoder = TextDecoder;
import { matchers } from './src/matchers';

expect.extend(matchers);

window.MessageChannel = jest.fn().mockImplementation(() => {
let onmessage;
return {
port1: {
set onmessage(cb) {
onmessage = cb;
},
},
port2: {
postMessage: (data) => {
onmessage?.({ data });
},
},
};
});

0 comments on commit 7b67334

Please sign in to comment.