Skip to content

Commit b7a3564

Browse files
author
Luca Forstner
committed
try fix
1 parent cc8f6a5 commit b7a3564

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/e2e-tests/lib/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ 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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
/* eslint-disable no-console */
22

3-
import { uuid4 } from '@sentry/utils';
43
import * as fs from 'fs-extra';
4+
import * as os from 'os';
55
import * as path from 'path';
66

77
import { buildApp } from './buildApp';
8-
import { TMP_DIR } from './constants';
98
import { testApp } from './testApp';
109
import type { Env, RecipeInstance, RecipeTestResult } from './types';
1110

11+
let tmpDirCount = 0;
12+
1213
// This should never throw, we always return a result here
1314
export 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

packages/e2e-tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
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",

0 commit comments

Comments
 (0)