aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw/handlers/thematics/thematics-list.handler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/msw/handlers/thematics/thematics-list.handler.ts')
-rw-r--r--tests/msw/handlers/thematics/thematics-list.handler.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/msw/handlers/thematics/thematics-list.handler.ts b/tests/msw/handlers/thematics/thematics-list.handler.ts
index 7afec4c..790fa5a 100644
--- a/tests/msw/handlers/thematics/thematics-list.handler.ts
+++ b/tests/msw/handlers/thematics/thematics-list.handler.ts
@@ -1,14 +1,15 @@
import { type ExecutionResult, graphql as executeGraphql } from 'graphql';
-import { HttpResponse, graphql } from 'msw';
+import { HttpResponse } from 'msw';
import type {
FetchThematicsListInput,
ThematicsListResponse,
} from '../../../../src/services/graphql';
import { wpThematicsFixture } from '../../../fixtures';
import { getConnection } from '../../../utils/graphql';
+import { wordpressAPI } from '../../instances';
import { schema } from '../../schema';
-export const thematicsListHandler = graphql.query<
+export const thematicsListHandler = wordpressAPI.query<
ThematicsListResponse,
FetchThematicsListInput
>('ThematicsList', async ({ query, variables }) => {