Skip to content

Commit 61aeb6c

Browse files
committed
feat: update to ant6 and react-geo 33
1 parent d8c89cb commit 61aeb6c

26 files changed

Lines changed: 1558 additions & 488 deletions

File tree

jest.setup.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,21 @@ jest.mock('react-i18next', () => ({
2424
init: jest.fn()
2525
}
2626
}));
27+
28+
window.MessageChannel =
29+
window.MessageChannel ||
30+
jest.fn().mockImplementation(() => {
31+
let onmessage;
32+
return {
33+
port1: {
34+
set onmessage(cb) {
35+
onmessage = cb;
36+
}
37+
},
38+
port2: {
39+
postMessage: (data) => {
40+
onmessage?.({ data });
41+
}
42+
}
43+
};
44+
});

0 commit comments

Comments
 (0)