Please provide the following:
- SDK Version: 42.0.0
- Platforms(Android/iOS/web/all): all
- Add the appropriate “Tag” based on what Expo library you have a question on.
Hello all, I am trying to integrate testing into my app following this guide: Testing with Jest - Expo Documentation
I have a simple test for the App component shown below:
import React, { ReactNode } from "react";
import renderer from "react-test-renderer";
import App from "./App";
describe("<App />", () => {
it("renders correctly", () => {
const tree = renderer.create(<App />).toJSON();
expect(tree).toMatchSnapshot();
});
});
My problem is: I only have a single test file shown above. The test was passing and working fine up to now. All of a sudden when I run yarn test
command the following error is thrown and the test fails.
Maybe it is something related to the expo source code. I tried looking into the expo folder inside node_modules but couldn’t find the source code for logging.fx.ts file
I am totally lost on how this occurs or how to resolve this. Any leads on the issue or where I can dig deeper would be greatly appreciated.