UNPKG

wdio-electron-service

Version:

WebdriverIO service to enable Electron testing

13 lines (10 loc) 459 B
'use strict'; var electron = require('electron'); var constants = require('./constants-DkSg7z4n.js'); // TODO: This file should be remove at V9 const invoke = async (channel, ...data) => electron.ipcRenderer.invoke(channel, ...data); // Expose `execute` to the renderer process electron.contextBridge.exposeInMainWorld('wdioElectron', { execute: (script, args) => invoke(constants.Channel.Execute, script, args), }); //# sourceMappingURL=preload.js.map