mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-24 07:20:16 +05:30
fix(renderer): migrate File.path reads to webUtils.getPathForFile for Electron 41
This commit is contained in:
@@ -11,6 +11,8 @@ global.window.electronAPI = {
|
||||
once: jest.fn(),
|
||||
invoke: jest.fn(() => Promise.resolve(null)),
|
||||
removeAllListeners: jest.fn(),
|
||||
// webUtils.getPathForFile bridge (File.path was removed in Electron 32)
|
||||
getFilePath: jest.fn((file) => file && file.path),
|
||||
file: {
|
||||
save: jest.fn(),
|
||||
saveCurrent: jest.fn(),
|
||||
|
||||
Reference in New Issue
Block a user