mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-26 15:53:53 +03:00
fix: temporary fix for running electron tests (#6576)
a workaround for spawn EINVAL error. Found this issue according to https://github.com/node-red/node-red/pull/4652 ~~In our case the electron app is spawned by playwright. I am still investigating the issue but don't know how long it takes.~~ Upstream fix: https://github.com/microsoft/playwright/pull/30382
This commit is contained in:
parent
a98471daa2
commit
ebb38a42a0
@ -37,6 +37,7 @@ function spawnOrReloadElectron() {
|
||||
spawnProcess = spawn(exe, ['.'], {
|
||||
cwd: electronDir,
|
||||
env: process.env,
|
||||
shell: true,
|
||||
});
|
||||
|
||||
spawnProcess.stdout.on('data', d => {
|
||||
|
@ -55,12 +55,14 @@ if (!process.env.SKIP_WEB_BUILD) {
|
||||
stdio: 'inherit',
|
||||
env: process.env,
|
||||
cwd,
|
||||
shell: true,
|
||||
});
|
||||
|
||||
spawnSync('yarn', ['workspace', '@affine/electron', 'build'], {
|
||||
stdio: 'inherit',
|
||||
env: process.env,
|
||||
cwd,
|
||||
shell: true,
|
||||
});
|
||||
|
||||
// step 1.5: amend sourceMappingURL to allow debugging in devtools
|
||||
|
Loading…
Reference in New Issue
Block a user