diff --git a/packages/server/__mocks__/node-fetch.ts b/packages/server/__mocks__/node-fetch.ts index dfb839fe85..8badbd0156 100644 --- a/packages/server/__mocks__/node-fetch.ts +++ b/packages/server/__mocks__/node-fetch.ts @@ -6,6 +6,9 @@ module FetchMock { return { status, headers: { + raw: () => { + return { "content-type": ["application/json"] } + }, get: () => { return ["application/json"] }, diff --git a/packages/server/src/integrations/tests/rest.spec.js b/packages/server/src/integrations/tests/rest.spec.js index 99f10ff438..58033e68a4 100644 --- a/packages/server/src/integrations/tests/rest.spec.js +++ b/packages/server/src/integrations/tests/rest.spec.js @@ -1,6 +1,9 @@ jest.mock("node-fetch", () => jest.fn(() => ({ headers: { + raw: () => { + return { "content-type": ["application/json"] } + }, get: () => ["application/json"] }, json: jest.fn(),