MCPcopy Create free account
hub / github.com/decaporg/decap-cms / API

Function API

packages/decap-cms-backend-forgejo/src/__tests__/API.spec.js:8–10  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

6const TEST_API_ROOT = 'https://v14.next.forgejo.org/api/v1';
7
8function API(config) {
9 return new APIClass({ apiRoot: TEST_API_ROOT, ...config });
10}
11
12global.fetch = jest.fn().mockRejectedValue(new Error('should not call fetch inside tests'));
13

Callers 1

API.spec.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected