@@ -9,7 +9,7 @@ const root = _path.join(__dirname, '..')
99
1010const serverRoot = _path . join ( __dirname , '../../packages/server/' )
1111const projects = _path . join ( root , 'projects' )
12- const tmpDir = _path . join ( os . tmpdir ( ) , 'cy-projects' )
12+ let tmpDir = _path . join ( os . tmpdir ( ) , 'cy-projects' )
1313
1414// copy contents instead of deleting+creating new file, which can cause
1515// filewatchers to lose track of toFile.
@@ -175,7 +175,7 @@ export async function scaffoldProjectNodeModules (project: string, updateYarnLoc
175175
176176 const runCmd = async ( cmd ) => {
177177 console . log ( `📦 Running "${ cmd } " in ${ projectDir } ` )
178- await execa . shell ( cmd , { cwd : projectDir , stdio : 'inherit' } )
178+ await execa ( cmd , { cwd : projectDir , stdio : 'inherit' , shell : true } )
179179 }
180180
181181 const cacheDir = _path . join ( cachedir ( 'cy-system-tests-node-modules' ) , project , 'node_modules' )
@@ -343,4 +343,8 @@ export function path (fixture) {
343343 return _path . join ( serverRoot , 'test' , 'support' , 'fixtures' , fixture )
344344}
345345
346+ export function setTmpDir ( dir : string ) {
347+ tmpDir = dir
348+ }
349+
346350export default module . exports
0 commit comments