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

Function coreMock

tests/helpers/action-mocks.js:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { jest } from '@jest/globals'
2
3export function coreMock() {
4 return {
5 info: jest.fn(),
6 warn: jest.fn(),
7 error: jest.fn(console.error),
8 setOutput: jest.fn(),
9 }
10}
11
12export function octokitMock({ requestMock, listForRepoMock } = {}) {
13 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected