Make auth property on GitHubApiDetails optional

This commit is contained in:
Michael B. Gale
2026-10-13 15:32:43 +01:00
parent 1d407759fe
commit 8feed81de0
4 changed files with 41 additions and 38 deletions

View File

@@ -126,7 +126,7 @@ function mockReleaseApi({
});
}
function mockApiDetails(apiDetails: GitHubApiDetails) {
function mockApiDetails(apiDetails: Required<GitHubApiDetails>) {
// This is a workaround to mock `api.getApiDetails()` since it doesn't seem to be possible to
// mock this directly. The difficulty is that `getApiDetails()` is called locally in
// `api-client.ts`, but `sinon.stub(api, "getApiDetails")` only affects calls to