From 3fa6185d39459cce18e33d56afa59cb224f641b8 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:39:07 +0200 Subject: [PATCH] Fix mock test path prefix --- ts/test-mock/bootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/test-mock/bootstrap.ts b/ts/test-mock/bootstrap.ts index 9c60611f4f9d..03a5ddbd7293 100644 --- a/ts/test-mock/bootstrap.ts +++ b/ts/test-mock/bootstrap.ts @@ -314,7 +314,7 @@ export class Bootstrap { await fs.mkdir(ARTIFACTS_DIR, { recursive: true }); const normalizedPrefix = pathPrefix - ? `-${normalizePath(pathPrefix.replace(/[ /]/g, '-'))}-` + ? `-${normalizePath(pathPrefix.replace(/[^a-z]+/gi, '-'))}-` : ''; const outDir = await fs.mkdtemp( path.join(ARTIFACTS_DIR, `logs-${normalizedPrefix}`)