Skip to content

Commit

Permalink
add safe check on getting the package manager version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman committed Dec 10, 2024
1 parent a26b620 commit fa16b47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/scripts/check-siblingsHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export function GetPackageManagerVersion(pkgMnger: string, testPath: string): st
INIT_CWD: testPath
}
});
expect(result.error).toBeUndefined();
expect(result.status).toBe(0);
expect(result.stderr?.toString()).toBeEmpty();
return result.stdout.toString().trim();
}

Expand Down

0 comments on commit fa16b47

Please sign in to comment.