test(app): fix EBUSY/EPERM errors when running e2e tests on Windows (#19848)

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
This commit is contained in:
Zach Bloomquist
2022-01-26 19:39:13 +00:00
committed by GitHub
parent edce5b5fd8
commit dfd70445b1
28 changed files with 103 additions and 660 deletions
-9
View File
@@ -66,15 +66,6 @@ const testStaticAssets = async (buildResourcePath) => {
'return callback((data instanceof ArrayBuffer || isArrayBuffer(data)) ? data : data.buffer);',
],
}),
testPackageStaticAssets({
assetGlob: `${buildResourcePath}/node_modules/winston/lib/winston/common.js`,
badStrings: [
`if (target.padLevels) {`,
],
goodStrings: [
`if (target.hasOwnProperty('padLevels') && target.padLevels) {`,
],
}),
])
}
+1 -1
View File
@@ -100,7 +100,7 @@ async function spawnCypressWithMode (
}
return await forked(`cy:${mode}:${type}`, pathToCli, [mode, ...argv], {
cwd: monorepoPaths.root,
cwd: process.env.INIT_CWD,
env: finalEnv,
waitForData: false,
execArgv: [],