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