diff --git a/dotcom-rendering/src/lib/mockRESTCalls.ts b/dotcom-rendering/src/lib/mockRESTCalls.ts index c96a7316dc5..4b4f132c83f 100644 --- a/dotcom-rendering/src/lib/mockRESTCalls.ts +++ b/dotcom-rendering/src/lib/mockRESTCalls.ts @@ -205,6 +205,11 @@ export const mockFetch: typeof global.fetch = ( url, ) && requestInit?.method === 'POST': return createMockResponse(200, contributionsHeaderResponse); + // Get contributions header + case /.*contributions\.(code\.dev-)?guardianapis\.com\/header/.test( + url, + ): + return createMockResponse(200, contributionsHeaderResponse); // Get Ophan case /.*ophan\.theguardian\.com\/img\/.*/.test(url): return createMockResponse(200);