({ requestMock, listForRepoMock } = {})
| 10 | } |
| 11 | |
| 12 | export function octokitMock({ requestMock, listForRepoMock } = {}) { |
| 13 | return { |
| 14 | request: jest.fn(requestMock), |
| 15 | rest: { |
| 16 | issues: { |
| 17 | listForRepo: jest.fn(listForRepoMock), |
| 18 | createComment: jest.fn(), |
| 19 | update: jest.fn(), |
| 20 | }, |
| 21 | }, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export function cheerioMock(argToValueMap) { |
| 26 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected