Recreate components folder structure for tests

This commit is contained in:
MariaZ committed 2022-09-20 10:35:28 +02:00
1 parent c267e80424
commit 2e060d3261
3 files changed
+4 -4

No files matched your search

@@ -1,10 +1,10 @@
import React from 'react'
import { render, screen, fireEvent } from '@testing-library/react-native'
import AcceptLicense from '../components/AcceptLicense'
import AcceptLicense from '../../components/AcceptLicense'
import { saveLicenseFlag } from '../local-storage'
import { saveLicenseFlag } from '../../local-storage'
jest.mock('../local-storage', () => ({
jest.mock('../../local-storage', () => ({
saveLicenseFlag: jest.fn(() => Promise.resolve()),
}))
@@ -1,6 +1,6 @@
import React from 'react'
import { render, screen } from '@testing-library/react-native'
import License from '../components/settings/License'
import License from '../../../components/settings/License'
jest.mock('react-i18next', () => ({
useTranslation: () => ({