Move jest-setup.js to ./test folder

This commit is contained in:
MariaZ committed 2022-09-20 12:37:13 +02:00
1 parent 5f61f37d2f
commit 82b6a6b603
3 files changed
+9 -3

No files matched your search

+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) : ''),
}),
}))