tests - depend on a test preload.js (#226588)

This commit is contained in:
Benjamin Pasero
2024-08-26 10:14:27 +02:00
committed by GitHub
parent 8be3fa294c
commit 9f04aaf6f4
4 changed files with 95 additions and 7 deletions

View File

@@ -249,7 +249,7 @@ app.on('ready', () => {
width: 800,
show: false,
webPreferences: {
preload: path.join(__dirname, '..', '..', '..', 'src', 'vs', 'base', 'parts', 'sandbox', 'electron-sandbox', 'preload.js'), // ensure similar environment as VSCode as tests may depend on this
preload: path.join(__dirname, 'preload.js'),
additionalArguments: [`--vscode-window-config=vscode:test-vscode-window-config`],
nodeIntegration: true,
contextIsolation: false,