import React from "react"; import Box from "./box"; import Text from "../text/text"; import { render } from "@testing-library/react-native"; import { ThemeProvider } from "../../../theme/src/theme-context"; jest.useFakeTimers(); describe("Atoms/Box", () => { it("passes the basic snapshot test", () => { const tree = render( ).toJSON(); expect(tree).toMatchSnapshot(); }); it("renders the correct text", () => { const { getByText } = render( Test Text ); expect(getByText("Test Text")).toBeTruthy(); }); it("renders correctly with different props", () => { const tree = render( Test Text ).toJSON(); expect(tree).toMatchSnapshot(); }); });