Move react-i18next mock to jest-setup.js
This commit is contained in:
@@ -3,12 +3,6 @@ import { render } from '@testing-library/react-native'
|
||||
|
||||
import StatsTable from '../../../components/common/StatsTable'
|
||||
|
||||
jest.mock('react-i18next', () => ({
|
||||
useTranslation: () => ({
|
||||
t: (str, options) => str + (options ? JSON.stringify(options) : ''),
|
||||
}),
|
||||
}))
|
||||
|
||||
const mockGetStats = jest
|
||||
.fn()
|
||||
.mockImplementationOnce(() => [
|
||||
|
||||
Reference in New Issue
Block a user