Skip to content

Commit 0fdd6f1

Browse files
run tests only if url exists
1 parent 8fe9ec2 commit 0fdd6f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clients/js/test/_setup.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ export const DAS_API_ENDPOINTS: { name: string; url: string }[] = [];
77
Object.keys(process.env).forEach(function (key) {
88
if (key.startsWith('DAS_API_')) {
99
const name = key.substring('DAS_API_'.length);
10-
const url = process.env[key]!;
11-
DAS_API_ENDPOINTS.push({ name, url });
10+
const url = process.env[key];
11+
if (url) {
12+
DAS_API_ENDPOINTS.push({ name, url });
13+
}
1214
}
1315
});
1416

0 commit comments

Comments
 (0)