Fix mock test path prefix
This commit is contained in:
@@ -314,7 +314,7 @@ export class Bootstrap {
|
|||||||
await fs.mkdir(ARTIFACTS_DIR, { recursive: true });
|
await fs.mkdir(ARTIFACTS_DIR, { recursive: true });
|
||||||
|
|
||||||
const normalizedPrefix = pathPrefix
|
const normalizedPrefix = pathPrefix
|
||||||
? `-${normalizePath(pathPrefix.replace(/[ /]/g, '-'))}-`
|
? `-${normalizePath(pathPrefix.replace(/[^a-z]+/gi, '-'))}-`
|
||||||
: '';
|
: '';
|
||||||
const outDir = await fs.mkdtemp(
|
const outDir = await fs.mkdtemp(
|
||||||
path.join(ARTIFACTS_DIR, `logs-${normalizedPrefix}`)
|
path.join(ARTIFACTS_DIR, `logs-${normalizedPrefix}`)
|
||||||
|
Reference in New Issue
Block a user