File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ export const DEFAULT_BUILD_TIMEOUT_SECONDS = 60 * 5;
33export const DEFAULT_TEST_TIMEOUT_SECONDS = 60 * 2 ;
44export const VERDACCIO_VERSION = '5.22.1' ;
55export const PUBLISH_PACKAGES_DOCKER_IMAGE_NAME = 'publish-packages' ;
6+ export const TMP_DIR = 'tmp' ;
Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
22
33import * as fs from 'fs-extra' ;
4- import * as os from 'os' ;
54import * as path from 'path' ;
65
76import { buildApp } from './buildApp' ;
7+ import { TMP_DIR } from './constants' ;
88import { testApp } from './testApp' ;
99import type { Env , RecipeInstance , RecipeTestResult } from './types' ;
1010
@@ -18,7 +18,7 @@ export async function buildAndTestApp(
1818 const { recipe, port } = recipeInstance ;
1919 const recipeDirname = path . dirname ( recipe . path ) ;
2020
21- const targetDir = path . join ( os . tmpdir ( ) , `${ recipe . testApplicationName } -${ tmpDirCount ++ } ` ) ;
21+ const targetDir = path . join ( TMP_DIR , `${ recipe . testApplicationName } -${ tmpDirCount ++ } ` ) ;
2222
2323 await fs . copy ( recipeDirname , targetDir ) ;
2424
You can’t perform that action at this time.
0 commit comments