We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f92d79 commit 415de1dCopy full SHA for 415de1d
1 file changed
packages/tools/src/harness-artifacts.ts
@@ -12,6 +12,9 @@ const sanitizePathSegment = (value: string) =>
12
const formatRunTimestamp = (value: Date) =>
13
value.toISOString().replace(/[:.]/g, '-');
14
15
+const isDefined = (value: string | undefined): value is string =>
16
+ value !== undefined;
17
+
18
export const createHarnessArtifactDirectory = ({
19
artifactType,
20
bundleId,
@@ -34,7 +37,7 @@ export const createHarnessArtifactDirectory = ({
34
37
runnerName,
35
38
36
39
]
- .filter(Boolean)
40
+ .filter(isDefined)
41
.map((value) => sanitizePathSegment(value))
42
.join('--');
43
const directoryPath = path.join(artifactRoot, runDirName);
0 commit comments