Skip to content

Commit 807a38d

Browse files
committed
fix(testWithSpectron): enable nodeIntegration automatically
1 parent 1a44e25 commit 807a38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ function bundleMain ({
562562
}
563563
})
564564
// Enable/disable nodeIntegration
565-
envVars.ELECTRON_NODE_INTEGRATION = pluginOptions.nodeIntegration || false
565+
envVars.ELECTRON_NODE_INTEGRATION = args.headless || pluginOptions.nodeIntegration || false
566566
config.plugin('env').use(webpack.EnvironmentPlugin, [envVars])
567567

568568
if (args.debug) {

0 commit comments

Comments
 (0)