Skip to content

Commit e8ba7b8

Browse files
committed
SkipLink: update test setup to use testutils
1 parent 001c9e4 commit e8ba7b8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

client/components/SkipLink.test.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
import { render, screen, fireEvent } from '@testing-library/react';
21
import React from 'react';
3-
import { useTranslation } from 'react-i18next';
4-
import '@testing-library/jest-dom';
2+
import { render, screen, fireEvent } from '../test-utils';
53
import { SkipLink } from './SkipLink';
64

7-
jest.mock('react-i18next', () => ({
8-
useTranslation: () => ({
9-
t: (key: string) => key
10-
})
11-
}));
12-
135
describe('SkipLink', () => {
146
const defaultProps = {
157
targetId: 'main-content',

0 commit comments

Comments
 (0)