Skip to content

Commit c5cfd5f

Browse files
committed
fix(tests): enable nodeIntegration in e2e tests
1 parent 0e95df5 commit c5cfd5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__tests__/createProject.helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ const createProject = (projectName, useTS, customPlugins = {}) =>
8989
fs.readFileSync(projectPath('package.json'), 'utf8')
9090
)
9191
appPkg.dependencies.mockExternal = 'mockExternal'
92+
// Enable nodeIntegration
93+
appPkg.vue.pluginOptions = { electronBuilder: { nodeIntegration: true } }
9294
fs.writeFileSync(projectPath('package.json'), JSON.stringify(appPkg))
9395

9496
resolve({ project, projectName })

0 commit comments

Comments
 (0)