Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new
MockApp
class to the project, updates theREADME.md
file to include this new class, and adds corresponding tests. Additionally, thesrc/index.ts
file is updated to export the newMockApp
class.New
MockApp
class:src/MockApp.ts
: Introduced a newMockApp
class that extendsEventEmitter
and implements theElectron.App
interface. The class includes numerous methods and properties, all of which are spied on usingsinon
.Documentation updates:
README.md
: Updated the list of implemented mock classes to includeMockApp
. [1] [2]Export updates:
src/index.ts
: Updated to export the newMockApp
class. [1] [2]Tests for
MockApp
:test/MockApp.test.ts
: Added comprehensive tests for theMockApp
class, ensuring that all methods and properties are properly spied on and function as expected.