Closed petitpandarouge closed 1 month ago
This is a way of having cleaner testable code and remove these peaces of codes that hardly mean something.
jest.mock('obsidian', () => { return { Notice: jest.fn() }; }); ... const mockNotice = jest.fn(); (Notice as jest.Mock) = mockNotice;
This enhancement imply struturing the whole entry points plugins to be compatible with injection dependency.
This is a way of having cleaner testable code and remove these peaces of codes that hardly mean something.
This enhancement imply struturing the whole entry points plugins to be compatible with injection dependency.