UNPKG

wdio-electron-service

Version:

WebdriverIO service to enable Electron testing

11 lines (9 loc) 439 B
import { contextBridge, ipcRenderer } from 'electron'; import { a as Channel } from './constants-hw-pQOyp.js'; // TODO: This file should be remove at V9 const invoke = async (channel, ...data) => ipcRenderer.invoke(channel, ...data); // Expose `execute` to the renderer process contextBridge.exposeInMainWorld('wdioElectron', { execute: (script, args) => invoke(Channel.Execute, script, args), }); //# sourceMappingURL=preload.js.map