diff --git a/test/unit/electron/index.js b/test/unit/electron/index.js index 3991d0a0bd0..2e7e6442c72 100644 --- a/test/unit/electron/index.js +++ b/test/unit/electron/index.js @@ -146,6 +146,9 @@ app.on('ready', () => { }; }); + // No-op since invoke the IPC as part of IIFE in the preload. + ipcMain.handle('vscode:fetchShellEnv', event => { }); + const win = new BrowserWindow({ height: 600, width: 800, @@ -154,6 +157,7 @@ app.on('ready', () => { preload: path.join(__dirname, '..', '..', '..', 'src', 'vs', 'base', 'parts', 'sandbox', 'electron-browser', 'preload.js'), // ensure similar environment as VSCode as tests may depend on this additionalArguments: [`--vscode-window-config=vscode:test-vscode-window-config`], nodeIntegration: true, + contextIsolation: false, enableWebSQL: false, enableRemoteModule: false, spellcheck: false,