Skip to content

Commit 38e1f2d

Browse files
committed
fix(test/webpackConfig): enable nodeIntegration
1 parent c5cfd5f commit 38e1f2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

__tests__/webpackConfig.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ describe.each(['production', 'development'])('getExternals in %s', env => {
144144
})
145145

146146
// Run chainWebpack function
147-
const config = await mockChain(pluginOptions)
147+
// nodeIntegration must be true for externals to be fetched in renderer
148+
const config = await mockChain({ ...pluginOptions, nodeIntegration: true })
148149
return config.toConfig()
149150
}
150151
const hasExternal = externals => {

0 commit comments

Comments
 (0)