Skip to content

Commit 12a8c09

Browse files
author
Luca Forstner
committed
undo tmpdir change
1 parent b8a9efe commit 12a8c09

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/e2e-tests/lib/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export const DEFAULT_BUILD_TIMEOUT_SECONDS = 60 * 5;
33
export const DEFAULT_TEST_TIMEOUT_SECONDS = 60 * 2;
44
export const VERDACCIO_VERSION = '5.22.1';
55
export const PUBLISH_PACKAGES_DOCKER_IMAGE_NAME = 'publish-packages';
6+
export const TMP_DIR = 'tmp';

packages/e2e-tests/lib/runTestApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* eslint-disable no-console */
22

33
import * as fs from 'fs-extra';
4-
import * as os from 'os';
54
import * as path from 'path';
65

76
import { buildApp } from './buildApp';
7+
import { TMP_DIR } from './constants';
88
import { testApp } from './testApp';
99
import 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

0 commit comments

Comments
 (0)