const { useScreenBackgroundColor, } = require("@applicaster/zapp-react-native-utils/reactHooks/screen"); jest.mock("@applicaster/zapp-react-native-utils/reactHooks/screen", () => ({ useScreenBackgroundColor: jest.fn(), useNavbarState: jest.fn().mockReturnValue({ visible: true }), })); describe("TV Screen Component", () => { it("uses the useScreenBackgroundColor hook with the correct screen ID", () => { useScreenBackgroundColor.mockReturnValue("#FF0000"); expect(useScreenBackgroundColor("test-screen-id")).toBe("#FF0000"); // Verify the hook was called with the correct screen ID expect(useScreenBackgroundColor).toHaveBeenCalledWith("test-screen-id"); }); it("returns 'transparent' when the screen background color is not defined", () => { useScreenBackgroundColor.mockReturnValue("transparent"); // Verify the hook returns 'transparent' expect(useScreenBackgroundColor("test-screen-id")).toBe("transparent"); }); });