pack: fix test build
This commit is contained in:
1 parent
72a684b35c
commit
7da4d76ad8
3 files changed
+52
-41
No files matched your search
+9
-1
@@ -19,7 +19,15 @@ function existElementByTestId(selector: string, waitingMilliseconds = 100) {
|
||||
|
||||
test.beforeAll(async () => {
|
||||
// Open Electron app from build directory
|
||||
appElectron = await electron.launch({ args: ['dist/main/index.js'] })
|
||||
appElectron = await electron.launch({
|
||||
args: ['dist/main/index.js'],
|
||||
locale: 'en-US',
|
||||
colorScheme: 'light',
|
||||
env: {
|
||||
...process.env,
|
||||
NODE_ENV: 'production'
|
||||
}
|
||||
})
|
||||
appWindow = await appElectron.firstWindow()
|
||||
|
||||
await appWindow.waitForEvent('load')
|
||||
|
||||
Reference in new issue
Block a user