refactor(electron): nestjsfy

This commit is contained in:
Peng Xiao
2025-04-24 14:54:30 +08:00
parent 899ffd1ad3
commit 68ab87f5c5
178 changed files with 7139 additions and 5617 deletions
@@ -21,15 +21,14 @@ const config: PlaywrightTestConfig = {
},
reporter: process.env.CI ? 'github' : 'list',
webServer: [
// Intentionally not building the web, reminds you to run it by yourself.
{
command: 'yarn run -T affine dev -p @affine/electron-renderer',
command: 'yarn run -T affine bundle -p @affine/electron-renderer --dev',
port: 8080,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
env: {
COVERAGE: process.env.COVERAGE || 'false',
DISTRIBUTION: 'desktop',
},
url: 'http://localhost:8080',
},
@@ -57,7 +56,7 @@ const config: PlaywrightTestConfig = {
if (process.env.CI) {
config.retries = 3;
config.workers = '50%';
config.workers = 1;
}
export default config;
+1 -1
View File
@@ -72,7 +72,7 @@ export const test = base.extend<{
return electronApp.windows().length > 1;
},
{
timeout: 10000,
timeout: 30000,
}
)
.toBeTruthy();