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;
3
3
export const DEFAULT_TEST_TIMEOUT_SECONDS = 60 * 2 ;
4
4
export const VERDACCIO_VERSION = '5.22.1' ;
5
5
export const PUBLISH_PACKAGES_DOCKER_IMAGE_NAME = 'publish-packages' ;
6
+ export const TMP_DIR = 'tmp' ;
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
3
3
import * as fs from 'fs-extra' ;
4
- import * as os from 'os' ;
5
4
import * as path from 'path' ;
6
5
7
6
import { buildApp } from './buildApp' ;
7
+ import { TMP_DIR } from './constants' ;
8
8
import { testApp } from './testApp' ;
9
9
import type { Env , RecipeInstance , RecipeTestResult } from './types' ;
10
10
@@ -18,7 +18,7 @@ export async function buildAndTestApp(
18
18
const { recipe, port } = recipeInstance ;
19
19
const recipeDirname = path . dirname ( recipe . path ) ;
20
20
21
- const targetDir = path . join ( os . tmpdir ( ) , `${ recipe . testApplicationName } -${ tmpDirCount ++ } ` ) ;
21
+ const targetDir = path . join ( TMP_DIR , `${ recipe . testApplicationName } -${ tmpDirCount ++ } ` ) ;
22
22
23
23
await fs . copy ( recipeDirname , targetDir ) ;
24
24
You can’t perform that action at this time.
0 commit comments