tests - ensure preload promises are all resolved

This commit is contained in:
Benjamin Pasero 2021-04-09 08:28:21 +02:00
parent ec972e8acc
commit f8c7dd64a4

View file

@ -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,