pack: fix test build

This commit is contained in:
leejooy96 committed 2023-11-13 09:42:38 +09:00
1 parent 72a684b35c
commit 7da4d76ad8
3 files changed
+52 -41

No files matched your search

+9 -1
View File
@@ -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')