mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Mock electron.ipcRenderer.on to prevent errors in React compoment test cases
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
parent
592b8c20f7
commit
7a2da15828
@ -13,5 +13,8 @@ module.exports = {
|
||||
getPath: jest.fn()
|
||||
}
|
||||
},
|
||||
dialog: jest.fn()
|
||||
dialog: jest.fn(),
|
||||
ipcRenderer: {
|
||||
on: jest.fn()
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user