File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,3 @@ 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
3- import { uuid4 } from '@sentry/utils' ;
43import * as fs from 'fs-extra' ;
4+ import * as os from 'os' ;
55import * as path from 'path' ;
66
77import { buildApp } from './buildApp' ;
8- import { TMP_DIR } from './constants' ;
98import { testApp } from './testApp' ;
109import type { Env , RecipeInstance , RecipeTestResult } from './types' ;
1110
11+ let tmpDirCount = 0 ;
12+
1213// This should never throw, we always return a result here
1314export async function buildAndTestApp (
1415 recipeInstance : RecipeInstance ,
@@ -17,7 +18,7 @@ export async function buildAndTestApp(
1718 const { recipe, port } = recipeInstance ;
1819 const recipeDirname = path . dirname ( recipe . path ) ;
1920
20- const targetDir = path . join ( TMP_DIR , `${ recipe . testApplicationName } -${ uuid4 ( ) } ` ) ;
21+ const targetDir = path . join ( os . tmpdir ( ) , `${ recipe . testApplicationName } -${ tmpDirCount ++ } ` ) ;
2122
2223 await fs . copy ( recipeDirname , targetDir ) ;
2324
Original file line number Diff line number Diff line change 2020 "clean" : " rimraf tmp test-applications/**/node_modules test-applications/**/dist"
2121 },
2222 "devDependencies" : {
23- "@sentry/utils" : " 7.43.0" ,
2423 "@types/glob" : " 8.0.0" ,
2524 "@types/node" : " ^14.6.4" ,
2625 "dotenv" : " 16.0.3" ,
You can’t perform that action at this time.
0 commit comments