diff --git a/src/components/App/App.test.tsx b/src/components/App/App.test.tsx index 488de0d03a..b584a1bdb5 100644 --- a/src/components/App/App.test.tsx +++ b/src/components/App/App.test.tsx @@ -4,8 +4,6 @@ import { act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; import thunk from "redux-thunk"; -import "tests/reactI18nextMock"; - import { defaultState } from "components/App/DefaultState"; import App from "components/App/component"; diff --git a/src/components/AppBar/tests/AppBarComponent.test.tsx b/src/components/AppBar/tests/AppBarComponent.test.tsx index daa5fe2f0c..6c100b69e6 100644 --- a/src/components/AppBar/tests/AppBarComponent.test.tsx +++ b/src/components/AppBar/tests/AppBarComponent.test.tsx @@ -3,8 +3,6 @@ import { MemoryRouter } from "react-router-dom"; import { act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { defaultState } from "components/App/DefaultState"; import AppBar from "components/AppBar/AppBarComponent"; diff --git a/src/components/AppBar/tests/NavigationButtons.test.tsx b/src/components/AppBar/tests/NavigationButtons.test.tsx index 429fdfeed0..d9e1fd8d7a 100644 --- a/src/components/AppBar/tests/NavigationButtons.test.tsx +++ b/src/components/AppBar/tests/NavigationButtons.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import renderer, { ReactTestInstance } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Permission } from "api"; import NavigationButtons, { dataCleanupButtonId, diff --git a/src/components/AppBar/tests/ProjectButtons.test.tsx b/src/components/AppBar/tests/ProjectButtons.test.tsx index b332c90324..52351f15a1 100644 --- a/src/components/AppBar/tests/ProjectButtons.test.tsx +++ b/src/components/AppBar/tests/ProjectButtons.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore, { MockStoreEnhanced } from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Permission } from "api/models"; import ProjectButtons, { projButtonId, diff --git a/src/components/AppBar/tests/SpeakerMenu.test.tsx b/src/components/AppBar/tests/SpeakerMenu.test.tsx index cd8c94b536..6fc1e2bb2f 100644 --- a/src/components/AppBar/tests/SpeakerMenu.test.tsx +++ b/src/components/AppBar/tests/SpeakerMenu.test.tsx @@ -4,8 +4,6 @@ import { Provider } from "react-redux"; import { act, create, ReactTestRenderer } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Speaker } from "api/models"; import SpeakerMenu, { SpeakerMenuList } from "components/AppBar/SpeakerMenu"; import { defaultState } from "components/Project/ProjectReduxTypes"; diff --git a/src/components/AppBar/tests/UserMenu.test.tsx b/src/components/AppBar/tests/UserMenu.test.tsx index 40876b8377..fb48130f5f 100644 --- a/src/components/AppBar/tests/UserMenu.test.tsx +++ b/src/components/AppBar/tests/UserMenu.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { act, create, ReactTestRenderer } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import UserMenu, { UserMenuList } from "components/AppBar/UserMenu"; import { Path } from "types/path"; diff --git a/src/components/Buttons/tests/DeleteButtonWithDialog.test.tsx b/src/components/Buttons/tests/DeleteButtonWithDialog.test.tsx index 07213d5706..e04420a791 100644 --- a/src/components/Buttons/tests/DeleteButtonWithDialog.test.tsx +++ b/src/components/Buttons/tests/DeleteButtonWithDialog.test.tsx @@ -1,7 +1,5 @@ import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import DeleteButtonWithDialog from "components/Buttons/DeleteButtonWithDialog"; import { CancelConfirmDialog } from "components/Dialogs"; diff --git a/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/DeleteEntry.test.tsx b/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/DeleteEntry.test.tsx index 64a8530149..d475e7d5f5 100644 --- a/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/DeleteEntry.test.tsx +++ b/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/DeleteEntry.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import DeleteEntry from "components/DataEntry/DataEntryTable/EntryCellComponents/DeleteEntry"; describe("DeleteEntry", () => { diff --git a/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/EntryNote.test.tsx b/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/EntryNote.test.tsx index 6f885f46a4..cf68712390 100644 --- a/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/EntryNote.test.tsx +++ b/src/components/DataEntry/DataEntryTable/EntryCellComponents/tests/EntryNote.test.tsx @@ -6,8 +6,6 @@ import { create, } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import EntryNote from "components/DataEntry/DataEntryTable/EntryCellComponents/EntryNote"; const mockText = "Test text"; diff --git a/src/components/DataEntry/DataEntryTable/NewEntry/tests/SenseDialog.test.tsx b/src/components/DataEntry/DataEntryTable/NewEntry/tests/SenseDialog.test.tsx index 4451a9fc20..df9051b5e5 100644 --- a/src/components/DataEntry/DataEntryTable/NewEntry/tests/SenseDialog.test.tsx +++ b/src/components/DataEntry/DataEntryTable/NewEntry/tests/SenseDialog.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import renderer from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Word } from "api/models"; import { SenseList } from "components/DataEntry/DataEntryTable/NewEntry/SenseDialog"; import StyledMenuItem from "components/DataEntry/DataEntryTable/NewEntry/StyledMenuItem"; diff --git a/src/components/DataEntry/DataEntryTable/NewEntry/tests/VernDialog.test.tsx b/src/components/DataEntry/DataEntryTable/NewEntry/tests/VernDialog.test.tsx index 51eb3cb09c..620ea49dc3 100644 --- a/src/components/DataEntry/DataEntryTable/NewEntry/tests/VernDialog.test.tsx +++ b/src/components/DataEntry/DataEntryTable/NewEntry/tests/VernDialog.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import renderer from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Word } from "api/models"; import StyledMenuItem from "components/DataEntry/DataEntryTable/NewEntry/StyledMenuItem"; import { VernList } from "components/DataEntry/DataEntryTable/NewEntry/VernDialog"; diff --git a/src/components/DataEntry/DataEntryTable/NewEntry/tests/index.test.tsx b/src/components/DataEntry/DataEntryTable/NewEntry/tests/index.test.tsx index 0214822a07..f3c8f171e8 100644 --- a/src/components/DataEntry/DataEntryTable/NewEntry/tests/index.test.tsx +++ b/src/components/DataEntry/DataEntryTable/NewEntry/tests/index.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { type ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { GlossWithSuggestions, VernWithSuggestions, diff --git a/src/components/DataEntry/DataEntryTable/tests/RecentEntry.test.tsx b/src/components/DataEntry/DataEntryTable/tests/RecentEntry.test.tsx index 3735826258..81f9a77944 100644 --- a/src/components/DataEntry/DataEntryTable/tests/RecentEntry.test.tsx +++ b/src/components/DataEntry/DataEntryTable/tests/RecentEntry.test.tsx @@ -8,8 +8,6 @@ import { } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Word } from "api/models"; import { defaultState } from "components/App/DefaultState"; import { diff --git a/src/components/DataEntry/DataEntryTable/tests/index.test.tsx b/src/components/DataEntry/DataEntryTable/tests/index.test.tsx index 067d47be7b..a19da7c853 100644 --- a/src/components/DataEntry/DataEntryTable/tests/index.test.tsx +++ b/src/components/DataEntry/DataEntryTable/tests/index.test.tsx @@ -8,8 +8,6 @@ import { } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Gloss, SemanticDomain, Sense, Word } from "api/models"; import { defaultState } from "components/App/DefaultState"; import DataEntryTable, { diff --git a/src/components/DataEntry/tests/DataEntryHeader.test.tsx b/src/components/DataEntry/tests/DataEntryHeader.test.tsx index ae7382782c..446bcd5cd0 100644 --- a/src/components/DataEntry/tests/DataEntryHeader.test.tsx +++ b/src/components/DataEntry/tests/DataEntryHeader.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import renderer, { ReactTestInstance } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { SemanticDomainFull } from "api/models"; import DataEntryHeader from "components/DataEntry/DataEntryHeader"; import { newSemanticDomain } from "types/semanticDomain"; diff --git a/src/components/DataEntry/tests/index.test.tsx b/src/components/DataEntry/tests/index.test.tsx index b2fddd36f6..212bd687ed 100644 --- a/src/components/DataEntry/tests/index.test.tsx +++ b/src/components/DataEntry/tests/index.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import renderer from "react-test-renderer"; import createMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import DataEntry, { smallScreenThreshold, treeViewDialogId, diff --git a/src/components/GoalTimeline/tests/GoalRedux.test.tsx b/src/components/GoalTimeline/tests/GoalRedux.test.tsx index 2a2afbff6e..4c2c28432f 100644 --- a/src/components/GoalTimeline/tests/GoalRedux.test.tsx +++ b/src/components/GoalTimeline/tests/GoalRedux.test.tsx @@ -1,7 +1,6 @@ import "@testing-library/jest-dom"; import { act, cleanup } from "@testing-library/react"; -import "tests/reactI18nextMock"; import { Edit, MergeUndoIds, Permission, User, UserEdit } from "api/models"; import * as LocalStorage from "backend/localStorage"; import GoalTimeline from "components/GoalTimeline"; diff --git a/src/components/GoalTimeline/tests/index.test.tsx b/src/components/GoalTimeline/tests/index.test.tsx index 6ac4e07b3e..5ef0485d95 100644 --- a/src/components/GoalTimeline/tests/index.test.tsx +++ b/src/components/GoalTimeline/tests/index.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import renderer from "react-test-renderer"; import createMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Permission } from "api/models"; import GoalTimeline, { createSuggestionData } from "components/GoalTimeline"; import { type GoalsState, defaultState } from "goals/Redux/GoalReduxTypes"; diff --git a/src/components/Login/tests/Login.test.tsx b/src/components/Login/tests/Login.test.tsx index 6512e99de8..28f75cb3fd 100644 --- a/src/components/Login/tests/Login.test.tsx +++ b/src/components/Login/tests/Login.test.tsx @@ -7,8 +7,6 @@ import { } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import Login, { LoginId } from "components/Login/Login"; import { defaultState as loginState } from "components/Login/Redux/LoginReduxTypes"; diff --git a/src/components/Login/tests/Signup.test.tsx b/src/components/Login/tests/Signup.test.tsx index 3dd5580fd5..e37744b9f5 100644 --- a/src/components/Login/tests/Signup.test.tsx +++ b/src/components/Login/tests/Signup.test.tsx @@ -8,8 +8,6 @@ import { } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { defaultState as loginState } from "components/Login/Redux/LoginReduxTypes"; import Signup, { SignupId } from "components/Login/Signup"; diff --git a/src/components/PageNotFound/tests/component.test.tsx b/src/components/PageNotFound/tests/component.test.tsx index 1928f846f5..6bbf0f9c7a 100644 --- a/src/components/PageNotFound/tests/component.test.tsx +++ b/src/components/PageNotFound/tests/component.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import PageNotFound from "components/PageNotFound/component"; jest.mock("react-router-dom"); diff --git a/src/components/PasswordReset/tests/Request.test.tsx b/src/components/PasswordReset/tests/Request.test.tsx index b9bd9dee7f..5b65b1e258 100644 --- a/src/components/PasswordReset/tests/Request.test.tsx +++ b/src/components/PasswordReset/tests/Request.test.tsx @@ -2,7 +2,6 @@ import "@testing-library/jest-dom"; import { act, cleanup, render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; -import "tests/reactI18nextMock"; import ResetRequest, { PasswordRequestIds, } from "components/PasswordReset/Request"; diff --git a/src/components/PasswordReset/tests/ResetPage.test.tsx b/src/components/PasswordReset/tests/ResetPage.test.tsx index ae7dd7bed7..d271ec1061 100644 --- a/src/components/PasswordReset/tests/ResetPage.test.tsx +++ b/src/components/PasswordReset/tests/ResetPage.test.tsx @@ -12,7 +12,6 @@ import { Provider } from "react-redux"; import { MemoryRouter, Route, Routes } from "react-router-dom"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; import PasswordReset, { PasswordResetTestIds, } from "components/PasswordReset/ResetPage"; diff --git a/src/components/ProjectScreen/tests/ChooseProject.test.tsx b/src/components/ProjectScreen/tests/ChooseProject.test.tsx index 1c9a838d7f..a291b8877b 100644 --- a/src/components/ProjectScreen/tests/ChooseProject.test.tsx +++ b/src/components/ProjectScreen/tests/ChooseProject.test.tsx @@ -1,8 +1,6 @@ import { ListItemButton } from "@mui/material"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { type Project } from "api/models"; import ChooseProject from "components/ProjectScreen/ChooseProject"; import { newProject } from "types/project"; diff --git a/src/components/ProjectScreen/tests/CreateProject.test.tsx b/src/components/ProjectScreen/tests/CreateProject.test.tsx index f87d550a1b..9d1c67bb14 100644 --- a/src/components/ProjectScreen/tests/CreateProject.test.tsx +++ b/src/components/ProjectScreen/tests/CreateProject.test.tsx @@ -8,8 +8,6 @@ import { } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { FileInputButton } from "components/Buttons"; import CreateProject, { buttonIdSubmit, diff --git a/src/components/ProjectSettings/ProjectSchedule/tests/index.test.tsx b/src/components/ProjectSettings/ProjectSchedule/tests/index.test.tsx index 5873b04f4c..141d9a1142 100644 --- a/src/components/ProjectSettings/ProjectSchedule/tests/index.test.tsx +++ b/src/components/ProjectSettings/ProjectSchedule/tests/index.test.tsx @@ -1,8 +1,6 @@ import { Button, IconButton } from "@mui/material"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { Project } from "api/models"; import ProjectSchedule from "components/ProjectSettings/ProjectSchedule"; import { newProject } from "types/project"; diff --git a/src/components/ProjectSettings/tests/ProjectAutocomplete.test.tsx b/src/components/ProjectSettings/tests/ProjectAutocomplete.test.tsx index 171bd52b87..1defa89dc2 100644 --- a/src/components/ProjectSettings/tests/ProjectAutocomplete.test.tsx +++ b/src/components/ProjectSettings/tests/ProjectAutocomplete.test.tsx @@ -1,8 +1,6 @@ import { Select } from "@mui/material"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { AutocompleteSetting } from "api/models"; import ProjectAutocomplete from "components/ProjectSettings/ProjectAutocomplete"; import { randomProject } from "types/project"; diff --git a/src/components/ProjectSettings/tests/ProjectImport.test.tsx b/src/components/ProjectSettings/tests/ProjectImport.test.tsx index aef6b9050c..ef11bf7891 100644 --- a/src/components/ProjectSettings/tests/ProjectImport.test.tsx +++ b/src/components/ProjectSettings/tests/ProjectImport.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { FileInputButton } from "components/Buttons"; import ProjectImport, { uploadFileButtonId, diff --git a/src/components/ProjectSettings/tests/ProjectLanguages.test.tsx b/src/components/ProjectSettings/tests/ProjectLanguages.test.tsx index 56b5ab45bc..440f92617f 100644 --- a/src/components/ProjectSettings/tests/ProjectLanguages.test.tsx +++ b/src/components/ProjectSettings/tests/ProjectLanguages.test.tsx @@ -2,8 +2,6 @@ import { Button, IconButton, Select } from "@mui/material"; import { LanguagePicker } from "mui-language-picker"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { Project, WritingSystem } from "api/models"; import ProjectLanguages, { editVernacularNameButtonId, diff --git a/src/components/ProjectSettings/tests/ProjectName.test.tsx b/src/components/ProjectSettings/tests/ProjectName.test.tsx index f775aa01f2..7e6f620cfc 100644 --- a/src/components/ProjectSettings/tests/ProjectName.test.tsx +++ b/src/components/ProjectSettings/tests/ProjectName.test.tsx @@ -1,8 +1,6 @@ import { Button, TextField } from "@mui/material"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import ProjectName from "components/ProjectSettings/ProjectName"; import { randomProject } from "types/project"; diff --git a/src/components/ProjectSettings/tests/index.test.tsx b/src/components/ProjectSettings/tests/index.test.tsx index c3b9ad80f8..ed866c9496 100644 --- a/src/components/ProjectSettings/tests/index.test.tsx +++ b/src/components/ProjectSettings/tests/index.test.tsx @@ -8,8 +8,6 @@ import { Provider } from "react-redux"; import { Store } from "redux"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Permission } from "api/models"; import { defaultState as exportProjectState } from "components/ProjectExport/Redux/ExportProjectReduxTypes"; import ProjectSettings, { diff --git a/src/components/ProjectUsers/tests/EmailInvite.test.tsx b/src/components/ProjectUsers/tests/EmailInvite.test.tsx index fabbed09a6..23c8edf558 100644 --- a/src/components/ProjectUsers/tests/EmailInvite.test.tsx +++ b/src/components/ProjectUsers/tests/EmailInvite.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock.ts"; - import { LoadingDoneButton } from "components/Buttons"; import EmailInvite from "components/ProjectUsers/EmailInvite"; diff --git a/src/components/ProjectUsers/tests/ProjectSpeakersList.test.tsx b/src/components/ProjectUsers/tests/ProjectSpeakersList.test.tsx index ac4cade32e..d2fc4e82b7 100644 --- a/src/components/ProjectUsers/tests/ProjectSpeakersList.test.tsx +++ b/src/components/ProjectUsers/tests/ProjectSpeakersList.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock.ts"; - import ProjectSpeakersList, { AddSpeakerListItem, SpeakerListItem, diff --git a/src/components/ProjectUsers/tests/SortOptions.test.tsx b/src/components/ProjectUsers/tests/SortOptions.test.tsx index 38d41b7531..d1270113f1 100644 --- a/src/components/ProjectUsers/tests/SortOptions.test.tsx +++ b/src/components/ProjectUsers/tests/SortOptions.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock.ts"; - import SortOptions, { SortOptionsProps, reverseButtonId, diff --git a/src/components/ProjectUsers/tests/SpeakerConsentListItemIcon.test.tsx b/src/components/ProjectUsers/tests/SpeakerConsentListItemIcon.test.tsx index 13ae4e0646..562bd78eae 100644 --- a/src/components/ProjectUsers/tests/SpeakerConsentListItemIcon.test.tsx +++ b/src/components/ProjectUsers/tests/SpeakerConsentListItemIcon.test.tsx @@ -4,8 +4,6 @@ import { act, cleanup, render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { ReactElement } from "react"; -import "tests/reactI18nextMock"; - import { ConsentType, Speaker } from "api/models"; import SpeakerConsentListItemIcon, { ListItemIconId, diff --git a/src/components/ProjectUsers/tests/UserList.test.tsx b/src/components/ProjectUsers/tests/UserList.test.tsx index 8a93dbe7af..694612b26e 100644 --- a/src/components/ProjectUsers/tests/UserList.test.tsx +++ b/src/components/ProjectUsers/tests/UserList.test.tsx @@ -1,8 +1,6 @@ import { Input, ListItem } from "@mui/material"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock.ts"; - import { User } from "api/models"; import UserList from "components/ProjectUsers/UserList"; import { newUser } from "types/user"; diff --git a/src/components/Pronunciations/tests/AudioRecorder.test.tsx b/src/components/Pronunciations/tests/AudioRecorder.test.tsx index 82128d60a0..a0f8ddbfd5 100644 --- a/src/components/Pronunciations/tests/AudioRecorder.test.tsx +++ b/src/components/Pronunciations/tests/AudioRecorder.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { defaultState } from "components/App/DefaultState"; import AudioRecorder from "components/Pronunciations/AudioRecorder"; import RecorderIcon, { diff --git a/src/components/Pronunciations/tests/PronunciationsBackend.test.tsx b/src/components/Pronunciations/tests/PronunciationsBackend.test.tsx index a744f16753..5b9460e2b2 100644 --- a/src/components/Pronunciations/tests/PronunciationsBackend.test.tsx +++ b/src/components/Pronunciations/tests/PronunciationsBackend.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { defaultState } from "components/App/DefaultState"; import AudioPlayer from "components/Pronunciations/AudioPlayer"; import AudioRecorder from "components/Pronunciations/AudioRecorder"; diff --git a/src/components/Pronunciations/tests/PronunciationsFrontend.test.tsx b/src/components/Pronunciations/tests/PronunciationsFrontend.test.tsx index e1f95e8c0c..11d65a6382 100644 --- a/src/components/Pronunciations/tests/PronunciationsFrontend.test.tsx +++ b/src/components/Pronunciations/tests/PronunciationsFrontend.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import renderer from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { defaultState } from "components/App/DefaultState"; import AudioPlayer from "components/Pronunciations/AudioPlayer"; import AudioRecorder from "components/Pronunciations/AudioRecorder"; diff --git a/src/components/SiteSettings/ProjectManagement/tests/index.test.tsx b/src/components/SiteSettings/ProjectManagement/tests/index.test.tsx index 310b0d525f..4359dfc301 100644 --- a/src/components/SiteSettings/ProjectManagement/tests/index.test.tsx +++ b/src/components/SiteSettings/ProjectManagement/tests/index.test.tsx @@ -1,8 +1,6 @@ import { ListItem } from "@mui/material"; import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import ExportButton from "components/ProjectExport/ExportButton"; import ProjectArchive from "components/ProjectSettings/ProjectArchive"; import { ProjectList } from "components/SiteSettings/ProjectManagement"; diff --git a/src/components/SiteSettings/tests/index.test.tsx b/src/components/SiteSettings/tests/index.test.tsx index 42199d14d2..a15c6630c2 100644 --- a/src/components/SiteSettings/tests/index.test.tsx +++ b/src/components/SiteSettings/tests/index.test.tsx @@ -2,8 +2,6 @@ import "@testing-library/jest-dom"; import { act, cleanup, render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; -import "tests/reactI18nextMock"; - import SiteSettings, { SiteSettingsTab } from "components/SiteSettings"; const mockGetAllProjects = jest.fn(); diff --git a/src/components/Statistics/tests/DomainStatistics.test.tsx b/src/components/Statistics/tests/DomainStatistics.test.tsx index 092de414fb..c9d669eead 100644 --- a/src/components/Statistics/tests/DomainStatistics.test.tsx +++ b/src/components/Statistics/tests/DomainStatistics.test.tsx @@ -1,8 +1,6 @@ import { ListItem } from "@mui/material"; import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { SemanticDomainCount } from "api"; import DomainStatistics from "components/Statistics/DomainStatistics"; import { diff --git a/src/components/Statistics/tests/Statistics.test.tsx b/src/components/Statistics/tests/Statistics.test.tsx index 2d38035916..0f2b91a2fc 100644 --- a/src/components/Statistics/tests/Statistics.test.tsx +++ b/src/components/Statistics/tests/Statistics.test.tsx @@ -1,8 +1,6 @@ import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles"; import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import Statistics from "components/Statistics/Statistics"; import { newProject } from "types/project"; import theme from "types/theme"; diff --git a/src/components/Statistics/tests/UserStatistics.test.tsx b/src/components/Statistics/tests/UserStatistics.test.tsx index 714433e950..63bf2e96ea 100644 --- a/src/components/Statistics/tests/UserStatistics.test.tsx +++ b/src/components/Statistics/tests/UserStatistics.test.tsx @@ -1,8 +1,6 @@ import { ListItem } from "@mui/material"; import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { SemanticDomainUserCount } from "api"; import UserStatistics from "components/Statistics/UserStatistics"; import { newSemanticDomainUserCount } from "types/semanticDomain"; diff --git a/src/components/TreeView/TreeDepiction/tests/DomainTileButton.test.tsx b/src/components/TreeView/TreeDepiction/tests/DomainTileButton.test.tsx index 092a3091f0..bcc08dbee9 100644 --- a/src/components/TreeView/TreeDepiction/tests/DomainTileButton.test.tsx +++ b/src/components/TreeView/TreeDepiction/tests/DomainTileButton.test.tsx @@ -1,8 +1,6 @@ import { Button } from "@mui/material"; import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import DomainTileButton from "components/TreeView/TreeDepiction/DomainTileButton"; import { Direction } from "components/TreeView/TreeDepiction/TreeDepictionTypes"; import domMap, { mapIds } from "components/TreeView/tests/SemanticDomainMock"; diff --git a/src/components/TreeView/TreeDepiction/tests/index.test.tsx b/src/components/TreeView/TreeDepiction/tests/index.test.tsx index f90862a174..4840ae4c3c 100644 --- a/src/components/TreeView/TreeDepiction/tests/index.test.tsx +++ b/src/components/TreeView/TreeDepiction/tests/index.test.tsx @@ -1,8 +1,6 @@ import { match } from "css-mediaquery"; import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock.ts"; - import { SemanticDomainTreeNode } from "api"; import TreeDepiction from "components/TreeView/TreeDepiction"; import testDomainMap, { diff --git a/src/components/TreeView/tests/TreeNavigator.test.tsx b/src/components/TreeView/tests/TreeNavigator.test.tsx index 2beb298ebc..e4373405c3 100644 --- a/src/components/TreeView/tests/TreeNavigator.test.tsx +++ b/src/components/TreeView/tests/TreeNavigator.test.tsx @@ -1,8 +1,6 @@ import { render, renderHook } from "@testing-library/react"; import { Key } from "ts-key-enum"; -import "tests/reactI18nextMock"; - import TreeNavigator, { TreeNavigatorProps, useTreeNavigation, diff --git a/src/components/TreeView/tests/TreeSearch.test.tsx b/src/components/TreeView/tests/TreeSearch.test.tsx index 35f7b9e846..e9be06dc4b 100644 --- a/src/components/TreeView/tests/TreeSearch.test.tsx +++ b/src/components/TreeView/tests/TreeSearch.test.tsx @@ -3,8 +3,6 @@ import userEvent from "@testing-library/user-event"; import React from "react"; import { Key } from "ts-key-enum"; -import "tests/reactI18nextMock"; - import { SemanticDomainTreeNode } from "api"; import * as backend from "backend"; import TreeSearch, { diff --git a/src/components/TreeView/tests/index.test.tsx b/src/components/TreeView/tests/index.test.tsx index 9d60778b98..86321387e7 100644 --- a/src/components/TreeView/tests/index.test.tsx +++ b/src/components/TreeView/tests/index.test.tsx @@ -4,8 +4,6 @@ import configureMockStore from "redux-mock-store"; import thunk from "redux-thunk"; import { Key } from "ts-key-enum"; -import "tests/reactI18nextMock"; - import TreeView, { exitButtonId, topButtonId } from "components/TreeView"; import { defaultState as treeViewState } from "components/TreeView/Redux/TreeViewReduxTypes"; import mockMap, { mapIds } from "components/TreeView/tests/SemanticDomainMock"; diff --git a/src/components/UserSettings/tests/UserSettings.test.tsx b/src/components/UserSettings/tests/UserSettings.test.tsx index 5c4a5d1755..df8d392d93 100644 --- a/src/components/UserSettings/tests/UserSettings.test.tsx +++ b/src/components/UserSettings/tests/UserSettings.test.tsx @@ -2,8 +2,6 @@ import "@testing-library/jest-dom"; import { act, cleanup, render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; -import "tests/reactI18nextMock"; - import { User } from "api/models"; import UserSettingsGetUser, { UserSettings, diff --git a/src/components/WordCard/tests/index.test.tsx b/src/components/WordCard/tests/index.test.tsx index 4690bebf31..62a052a09e 100644 --- a/src/components/WordCard/tests/index.test.tsx +++ b/src/components/WordCard/tests/index.test.tsx @@ -1,7 +1,5 @@ import { ReactTestRenderer, act, create } from "react-test-renderer"; -import "tests/reactI18nextMock"; - import { Word } from "api/models"; import WordCard, { AudioSummary, buttonIdFull } from "components/WordCard"; import SenseCard from "components/WordCard/SenseCard"; diff --git a/src/goals/CharacterInventory/CharInv/CharacterDetail/tests/index.test.tsx b/src/goals/CharacterInventory/CharInv/CharacterDetail/tests/index.test.tsx index 2ca7dc4820..27bab27239 100644 --- a/src/goals/CharacterInventory/CharInv/CharacterDetail/tests/index.test.tsx +++ b/src/goals/CharacterInventory/CharInv/CharacterDetail/tests/index.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import { type ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import CharacterDetail from "goals/CharacterInventory/CharInv/CharacterDetail"; import { buttonIdCancel, diff --git a/src/goals/CharacterInventory/CharInv/CharacterList/tests/index.test.tsx b/src/goals/CharacterInventory/CharInv/CharacterList/tests/index.test.tsx index e501972fbd..ab815ba66a 100644 --- a/src/goals/CharacterInventory/CharInv/CharacterList/tests/index.test.tsx +++ b/src/goals/CharacterInventory/CharInv/CharacterList/tests/index.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import CharacterList from "goals/CharacterInventory/CharInv/CharacterList"; import CharacterCard from "goals/CharacterInventory/CharInv/CharacterList/CharacterCard"; import { diff --git a/src/goals/CharacterInventory/CharInv/tests/index.test.tsx b/src/goals/CharacterInventory/CharInv/tests/index.test.tsx index 0414f59e78..f43e5ff6c0 100644 --- a/src/goals/CharacterInventory/CharInv/tests/index.test.tsx +++ b/src/goals/CharacterInventory/CharInv/tests/index.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import CharInv, { buttonIdCancel, buttonIdSave, diff --git a/src/goals/DefaultGoal/tests/BaseGoalScreen.test.tsx b/src/goals/DefaultGoal/tests/BaseGoalScreen.test.tsx index 5a9450deda..ac9593ae65 100644 --- a/src/goals/DefaultGoal/tests/BaseGoalScreen.test.tsx +++ b/src/goals/DefaultGoal/tests/BaseGoalScreen.test.tsx @@ -4,8 +4,6 @@ import renderer from "react-test-renderer"; import configureMockStore from "redux-mock-store"; import thunk from "redux-thunk"; -import "tests/reactI18nextMock"; - import { BaseGoalScreen } from "goals/DefaultGoal/BaseGoalScreen"; import { Goal } from "types/goals"; diff --git a/src/goals/DefaultGoal/tests/DisplayProgress.test.tsx b/src/goals/DefaultGoal/tests/DisplayProgress.test.tsx index 6dce0b2a96..9a62cc9312 100644 --- a/src/goals/DefaultGoal/tests/DisplayProgress.test.tsx +++ b/src/goals/DefaultGoal/tests/DisplayProgress.test.tsx @@ -3,8 +3,6 @@ import { act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; import thunk from "redux-thunk"; -import "tests/reactI18nextMock"; - import DisplayProgress from "goals/DefaultGoal/DisplayProgress"; import { MergeDups } from "goals/MergeDuplicates/MergeDupsTypes"; import { Goal } from "types/goals"; diff --git a/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/tests/index.test.tsx b/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/tests/index.test.tsx index b35f4eb8b3..9263e5fb0a 100644 --- a/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/tests/index.test.tsx +++ b/src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/tests/index.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { type ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { GramCatGroup, type Sense } from "api/models"; import { defaultState } from "components/App/DefaultState"; import MergeDragDrop from "goals/MergeDuplicates/MergeDupsStep/MergeDragDrop"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DefinitionCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DefinitionCell.test.tsx index db4afeac00..67bacdc73a 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DefinitionCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DefinitionCell.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import { act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import DefinitionCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/DefinitionCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; import { defaultWritingSystem } from "types/writingSystem"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DeleteCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DeleteCell.test.tsx index 80fd1e707b..483f57d1ee 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DeleteCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DeleteCell.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { DeleteButtonWithDialog } from "components/Buttons"; import { defaultState as reviewEntriesState } from "goals/ReviewEntries/Redux/ReviewEntriesReduxTypes"; import DeleteCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/DeleteCell"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DomainCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DomainCell.test.tsx index b7ff54c197..164e700f09 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DomainCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/DomainCell.test.tsx @@ -3,8 +3,6 @@ import { act, create } from "react-test-renderer"; import { Store } from "redux"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { defaultState as treeViewState } from "components/TreeView/Redux/TreeViewReduxTypes"; import DomainCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/DomainCell"; import { ColumnId } from "goals/ReviewEntries/ReviewEntriesTypes"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/FlagCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/FlagCell.test.tsx index 69a52cd1d0..6b3468fb31 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/FlagCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/FlagCell.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import FlagCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/FlagCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/GlossCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/GlossCell.test.tsx index 71ffd82aa6..60f095960b 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/GlossCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/GlossCell.test.tsx @@ -2,8 +2,6 @@ import { Provider } from "react-redux"; import { act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import GlossCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/GlossCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; import { defaultWritingSystem } from "types/writingSystem"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/NoteCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/NoteCell.test.tsx index 1eb657bc9f..6b3db1155d 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/NoteCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/NoteCell.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import NoteCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/NoteCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PartOfSpeechCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PartOfSpeechCell.test.tsx index e267907195..400eb3ef3a 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PartOfSpeechCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PartOfSpeechCell.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import PartOfSpeechCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/PartOfSpeechCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PronunciationsCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PronunciationsCell.test.tsx index cf93ffe7d3..cd90489d4a 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PronunciationsCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/PronunciationsCell.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { ReactTestRenderer, act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import { Pronunciation } from "api/models"; import { defaultState as currentProjectState } from "components/Project/ProjectReduxTypes"; import AudioPlayer from "components/Pronunciations/AudioPlayer"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/SenseCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/SenseCell.test.tsx index 1244b93cc3..f4ceb3d52b 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/SenseCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/SenseCell.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import SenseCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/SenseCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/VernacularCell.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/VernacularCell.test.tsx index 71d0237853..b06731dc98 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/VernacularCell.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/CellComponents/tests/VernacularCell.test.tsx @@ -1,7 +1,5 @@ import renderer from "react-test-renderer"; -import "tests/reactI18nextMock"; - import VernacularCell from "goals/ReviewEntries/ReviewEntriesTable/CellComponents/VernacularCell"; import mockWords from "goals/ReviewEntries/tests/WordsMock"; diff --git a/src/goals/ReviewEntries/ReviewEntriesTable/tests/CellColumns.test.tsx b/src/goals/ReviewEntries/ReviewEntriesTable/tests/CellColumns.test.tsx index aff52ef85e..2c140bf809 100644 --- a/src/goals/ReviewEntries/ReviewEntriesTable/tests/CellColumns.test.tsx +++ b/src/goals/ReviewEntries/ReviewEntriesTable/tests/CellColumns.test.tsx @@ -1,5 +1,3 @@ -import "tests/reactI18nextMock"; - import { GramCatGroup, GrammaticalInfo } from "api/models"; import columns, { ColumnTitle, diff --git a/src/goals/ReviewEntries/tests/index.test.tsx b/src/goals/ReviewEntries/tests/index.test.tsx index aeaccd2480..c6582f9ea6 100644 --- a/src/goals/ReviewEntries/tests/index.test.tsx +++ b/src/goals/ReviewEntries/tests/index.test.tsx @@ -3,8 +3,6 @@ import { Provider } from "react-redux"; import { act, create } from "react-test-renderer"; import configureMockStore from "redux-mock-store"; -import "tests/reactI18nextMock"; - import ReviewEntries from "goals/ReviewEntries"; import * as actions from "goals/ReviewEntries/Redux/ReviewEntriesActions"; import { wordFromReviewEntriesWord } from "goals/ReviewEntries/ReviewEntriesTypes"; diff --git a/src/setupTests.js b/src/setupTests.js index 4b65d92373..4c546243b2 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,3 +1,5 @@ +import "tests/reactI18nextMock"; + // Force tests to fail on console.error and console.warn. global.console.error = (message) => { throw message; diff --git a/src/tests/reactI18nextMock.ts b/src/tests/reactI18nextMock.ts index 067d3ecfbf..fbb2f61084 100644 --- a/src/tests/reactI18nextMock.ts +++ b/src/tests/reactI18nextMock.ts @@ -1,7 +1,6 @@ -/* Use `import "tests/reactI18nextMock.ts";` in a test file to mock i18next. +/* Use `import "tests/reactI18nextMock.ts";` in `setupTests.js` to mock i18next globally. * (For testing components with `Trans`, see tests/i18nMock.ts instead.) - * This import should be placed before the other internal imports. - * It must come before any file that imports `react-i18next`. */ + * This import should occur before other internal imports that use `react-i18next`. */ jest.mock("react-i18next", () => ({ initReactI18next: {