Skip to content

Commit

Permalink
test: Reintroduce HttpRespone
Browse files Browse the repository at this point in the history
  • Loading branch information
kulla committed Nov 14, 2023
1 parent 8367d80 commit 4b708d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions __config__/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { http } from 'msw'
import { http, HttpResponse } from 'msw'
import { SetupServer, setupServer } from 'msw/node'

import {
Expand Down Expand Up @@ -68,7 +68,7 @@ export async function createBeforeEach() {
global.sentryEvents.push(
...text.split('\n').map((x) => JSON.parse(x) as Sentry.Event),
)
return new Response()
return new HttpResponse()
}),
)

Expand Down
3 changes: 2 additions & 1 deletion __tests__/schema/taxonomy-term/delete-entity-links.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import gql from 'graphql-tag'
import { HttpResponse } from 'msw'

import {
article,
Expand Down Expand Up @@ -46,7 +47,7 @@ beforeEach(() => {
...taxonomyTermCurriculumTopic,
childrenIds: [],
})
return Response.json({ success: true })
return HttpResponse.json({ success: true })
})
})

Expand Down
2 changes: 1 addition & 1 deletion __tests__/schema/uuid/set-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ beforeEach(() => {
}
}

return new Response()
return new HttpResponse()
})
})

Expand Down

0 comments on commit 4b708d8

Please sign in to comment.