mock expo file system.

This commit is contained in:
Jordan
2025-02-19 06:13:10 -08:00
parent b3c2e09987
commit 6673663883
3 changed files with 12 additions and 11 deletions

View File

@ -1,10 +1,17 @@
import {dirname, resolve} from 'path'
import React from 'react';
import { fireEvent, render, screen } from '@testing-library/react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import TTNavStack from '../TTNavStack';
jest.mock('expo-file-system', () => require('./__mocks__/expo-file-system'));
// Mock the expo-file-system/next module
jest.mock('expo-file-system/next', () => ({
File: jest.fn(),
Paths: {
join: jest.fn(),
},
}));
const Stack = createStackNavigator();