UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

48 lines (47 loc) 854 B
// a stubbed out version of electron // for using in all of our tests :-) module.exports = { shell: {}, dialog: {}, ipcMain: { on () {}, removeAllListeners () {}, }, nativeImage: { createFromPath () { return {} }, }, app: { on () {}, exit () {}, commandLine: { appendSwitch () {}, appendArgument () {}, }, disableHardwareAcceleration () {}, async whenReady () {}, }, systemPreferences: { isDarkMode () {}, subscribeNotification () {}, }, BrowserWindow: { fromWebContents () {}, getExtensions () {}, removeExtension () {}, addExtension () {}, }, Menu: { buildFromTemplate () {}, setApplicationMenu () {}, }, Tray () { return { on () {}, setToolTip () {}, setImage () {}, setPressedImage () {}, } }, }