Move jest-setup.js to ./test folder

This commit is contained in:
MariaZ
2022-09-20 12:37:13 +02:00
parent 5f61f37d2f
commit 82b6a6b603
3 changed files with 9 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
// Import Jest Native matchers
import '@testing-library/jest-native/extend-expect'
jest.mock('react-i18next', () => ({
useTranslation: () => ({
t: (str, options) => str + (options ? JSON.stringify(options) : ''),
}),
}))