import { render } from '@testing-library/react'; import '@testing-library/jest-dom'; import { useDevice } from './use-device'; import { HyperglassContext } from '~/context'; import type { DeviceGroup, Config } from '~/types'; interface TestComponentProps { deviceId: string; } const DEVICES = [ { group: 'Test Group', locations: [{ id: 'test1', name: 'Test 1' }], }, ] as DeviceGroup[]; const TestComponent = (props: TestComponentProps): JSX.Element => { const { deviceId } = props; const getDevice = useDevice(); const device = getDevice(deviceId); return