import React from "react"; import { render } from "@testing-library/react-native"; import Stack, { HStack, VStack, ZStack } from "./stack"; import { ThemeProvider } from "../../../theme/src/theme-context"; import Divider from "../divider/divider"; import Box from "../box/box"; jest.useFakeTimers(); describe("Atoms/Stack", () => { it("passes the snapshot test for horizontal direction", () => { const tree = render( }> ).toJSON(); expect(tree).toMatchSnapshot(); }); it("passes the snapshot test for vertical direction", () => { const tree = render( }> ).toJSON(); expect(tree).toMatchSnapshot(); }); }); describe("Atoms/HStack", () => { it("passes the snapshot test", () => { const tree = render( }> ).toJSON(); expect(tree).toMatchSnapshot(); }); }); describe("Atoms/VStack", () => { it("passes the snapshot test", () => { const tree = render( }> ).toJSON(); expect(tree).toMatchSnapshot(); }); }); describe("Atoms/ZStack", () => { it("passes the snapshot test", () => { const tree = render( ).toJSON(); expect(tree).toMatchSnapshot(); }); });