We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefd86e commit 6c4d025Copy full SHA for 6c4d025
scripts/cleanupAtlasTestLeftovers.test.ts
@@ -76,8 +76,11 @@ async function main(): Promise<void> {
76
);
77
78
const testOrg = await findTestOrganization(apiClient);
79
- const testProjects = await findAllTestProjects(apiClient, testOrg.id || "");
+ if (!testOrg.id) {
80
+ throw new Error("Test organization ID not found.");
81
+ }
82
83
+ const testProjects = await findAllTestProjects(apiClient, testOrg.id);
84
if (testProjects.length === 0) {
85
console.log("No stale test projects found for cleanup.");
86
return;
0 commit comments