MCPcopy Create free account
hub / github.com/github/docs / octokitMock

Function octokitMock

tests/helpers/action-mocks.js:12–23  ·  view source on GitHub ↗
({ requestMock, listForRepoMock } = {})

Source from the content-addressed store, hash-verified

10}
11
12export 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
25export function cheerioMock(argToValueMap) {
26 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected