import type { CSSProperties, ReactElement } from "react"; import React from "react"; import { fireEvent, render } from "@testing-library/react-native"; import { Path } from "react-native-svg"; import type { ReactTestInstance } from "react-test-renderer"; import type { ButtonType, ButtonVariation } from "."; import { Button } from "."; import type { ButtonSize } from "./types"; import { baseButtonHeight, smallButtonHeight } from "./Button.style"; import { tokens } from "../utils/design"; function getIconAndTextColorFromRender({ type = "primary", variation = "work", }: { type?: ButtonType; variation?: ButtonVariation; }) { const pressHandler = jest.fn(); const text = "🌚 I am the text 🌚"; const iconName = "cog"; const { getByTestId, getByRole } = render(