diff --git a/client/src/components/Map/__snapshots__/Map.test.js.snap b/client/src/components/Map/__snapshots__/map.test.tsx.snap similarity index 100% rename from client/src/components/Map/__snapshots__/Map.test.js.snap rename to client/src/components/Map/__snapshots__/map.test.tsx.snap diff --git a/client/src/components/Map/Map.test.js b/client/src/components/Map/map.test.tsx similarity index 75% rename from client/src/components/Map/Map.test.js rename to client/src/components/Map/map.test.tsx index 947ecde5bd..18aa043991 100644 --- a/client/src/components/Map/Map.test.js +++ b/client/src/components/Map/map.test.tsx @@ -3,10 +3,14 @@ import { useStaticQuery } from 'gatsby'; import React from 'react'; import mockChallengeNodes from '../../__mocks__/challenge-nodes'; -import { Map } from './'; +import { Map } from '.'; + +const mockedUseStaticQuery = useStaticQuery as jest.MockedFunction< + typeof useStaticQuery +>; beforeEach(() => { - useStaticQuery.mockImplementationOnce(() => ({ + mockedUseStaticQuery.mockImplementationOnce(() => ({ allChallengeNode: { nodes: mockChallengeNodes }