Improve performance of mock tests

This commit is contained in:
Jamie Kyle 2024-02-29 14:01:12 -08:00 committed by GitHub
parent ea9a7385d6
commit 9c072c5bc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 18 additions and 64 deletions

View file

@ -986,7 +986,7 @@ async function createWindow() {
await safeLoadURL(
mainWindow,
process.env.TEST_ELECTRON_SCRIPT != null
getEnvironment() === Environment.Test
? await prepareFileUrl([__dirname, '../test/index.html'])
: await prepareFileUrl([__dirname, '../background.html'])
);