diff --git a/apps/site/components/Common/ActiveLink/__tests__/index.test.mjs b/apps/site/components/Common/ActiveLink/__tests__/index.test.mjs index 8ba0755b294c6..df11e03aa6f3f 100644 --- a/apps/site/components/Common/ActiveLink/__tests__/index.test.mjs +++ b/apps/site/components/Common/ActiveLink/__tests__/index.test.mjs @@ -2,7 +2,6 @@ import { render, screen } from '@testing-library/react'; import ActiveLink from '..'; -// mock usePathname, but retain all the other imports jest.mock('@/navigation.mjs', () => ({ ...jest.requireActual('@/navigation.mjs'), usePathname: jest.fn(), diff --git a/apps/site/util/__tests__/getLanguageDisplayName.test.mjs b/apps/site/util/__tests__/getLanguageDisplayName.test.mjs index 745d23f2c569f..4af7fe416a71b 100644 --- a/apps/site/util/__tests__/getLanguageDisplayName.test.mjs +++ b/apps/site/util/__tests__/getLanguageDisplayName.test.mjs @@ -1,6 +1,5 @@ import { getLanguageDisplayName } from '@/util/getLanguageDisplayName'; -// mock usePathname, but retain all the other imports jest.mock('@/shiki.config.mjs', () => ({ LANGUAGES: [ { name: 'javascript', aliases: ['js'], displayName: 'JavaScript' },