Fix tests to work with @octokit/rest v21.1.1

This commit is contained in:
Naoki Oketani
2025-05-01 13:16:23 +00:00
parent 8319691add
commit cf7dcfffcf

View File

@@ -8,6 +8,19 @@ import * as pr from '../src/pr'
jest.mock('../src/audit')
jest.mock('../src/issue')
jest.mock('../src/pr')
jest.mock('@octokit/rest', () => {
return {
Octokit: jest.fn().mockImplementation(() => {
return {
issues: {
listForRepo: jest.fn(),
createComment: jest.fn(),
create: jest.fn()
}
}
})
}
})
describe('run: pr', () => {
beforeEach(() => {