diff --git a/__tests__/attest.test.ts b/__tests__/attest.test.ts index ff2bb3a..f6e64ff 100644 --- a/__tests__/attest.test.ts +++ b/__tests__/attest.test.ts @@ -2,6 +2,7 @@ import { jest } from '@jest/globals' import type { Descriptor } from '@sigstore/oci' // Mock functions const mockGetOctokit = jest.fn() +// eslint-disable-next-line @typescript-eslint/no-explicit-any const mockAttest = jest.fn<() => Promise>() const mockCreateStorageRecord = jest.fn<() => Promise>() const mockGetRegistryCredentials = jest.fn() @@ -66,6 +67,7 @@ describe('repoOwnerIsOrg', () => { mockGetOctokit.mockReturnValue({ rest: { repos: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any get: jest.fn<() => Promise>().mockResolvedValue({ data: { owner: { type: 'User' } } }) @@ -128,6 +130,7 @@ describe('createAttestation', () => { mockGetOctokit.mockReturnValue({ rest: { repos: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any get: jest.fn<() => Promise>().mockResolvedValue({ data: { owner: { type: 'Organization' } } }) @@ -161,6 +164,7 @@ describe('createAttestation', () => { mockGetOctokit.mockReturnValue({ rest: { repos: { + // eslint-disable-next-line @typescript-eslint/no-explicit-any get: jest.fn<() => Promise>().mockResolvedValue({ data: { owner: { type: 'Organization' } } }) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 8120216..a61dfa7 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -26,6 +26,7 @@ const attestMock = jest.fn() const createStorageRecordMock = jest.fn() // Local attest mocks +// eslint-disable-next-line @typescript-eslint/no-explicit-any const createAttestationMock = jest.fn<() => Promise>() const repoOwnerIsOrgMock = jest.fn()