build: ignore node version mismatch for electron 30 tests (#42177)

This commit is contained in:
Samuel Attard 2024-05-14 13:02:55 -07:00 committed by GitHub
parent 526e2f8916
commit 40450d0a0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,7 +218,7 @@ async function installSpecModules (dir) {
if (fs.existsSync(path.resolve(dir, 'node_modules'))) {
await fs.remove(path.resolve(dir, 'node_modules'));
}
const { status } = childProcess.spawnSync(NPX_CMD, [`yarn@${YARN_VERSION}`, 'install', '--frozen-lockfile'], {
const { status } = childProcess.spawnSync(NPX_CMD, [`yarn@${YARN_VERSION}`, 'install', '--frozen-lockfile', '--ignore-engines'], {
env,
cwd: dir,
stdio: 'inherit',