aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msw/handlers/thematics/thematics-count.handler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/msw/handlers/thematics/thematics-count.handler.ts')
-rw-r--r--tests/msw/handlers/thematics/thematics-count.handler.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/msw/handlers/thematics/thematics-count.handler.ts b/tests/msw/handlers/thematics/thematics-count.handler.ts
index 4bcdf2d..8a1f12e 100644
--- a/tests/msw/handlers/thematics/thematics-count.handler.ts
+++ b/tests/msw/handlers/thematics/thematics-count.handler.ts
@@ -1,12 +1,13 @@
import { type ExecutionResult, graphql as executeGraphql } from 'graphql';
-import { HttpResponse, graphql } from 'msw';
+import { HttpResponse } from 'msw';
import type { ThematicsCountResponse } from '../../../../src/services/graphql';
import type { GraphQLPostWhere } from '../../../../src/types';
import { wpThematicsFixture } from '../../../fixtures';
import { getConnection } from '../../../utils/graphql';
+import { wordpressAPI } from '../../instances';
import { schema } from '../../schema';
-export const thematicsCountHandler = graphql.query<
+export const thematicsCountHandler = wordpressAPI.query<
ThematicsCountResponse,
GraphQLPostWhere
>('ThematicsCount', async ({ query, variables }) => {