Recreate components folder structure for tests

This commit is contained in:
MariaZ
2022-09-20 10:35:28 +02:00
parent c267e80424
commit 2e060d3261
3 changed files with 4 additions and 4 deletions
@@ -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: () => ({