We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001c9e4 commit e8ba7b8Copy full SHA for e8ba7b8
client/components/SkipLink.test.tsx
@@ -1,15 +1,7 @@
1
-import { render, screen, fireEvent } from '@testing-library/react';
2
import React from 'react';
3
-import { useTranslation } from 'react-i18next';
4
-import '@testing-library/jest-dom';
+import { render, screen, fireEvent } from '../test-utils';
5
import { SkipLink } from './SkipLink';
6
7
-jest.mock('react-i18next', () => ({
8
- useTranslation: () => ({
9
- t: (key: string) => key
10
- })
11
-}));
12
-
13
describe('SkipLink', () => {
14
const defaultProps = {
15
targetId: 'main-content',
0 commit comments