Skip to content

The open alternative to Salesforce, designed for AI.

463 B
Raw Blame
import { DEFAULT_INPUT_MEDIA_FEATURES } from '@/constants/DefaultInputMediaFeatures';
import { type MediaQueryEnvironment } from '@/polyfills/media-query/types/MediaQueryEnvironment';

export const createMediaQueryEnvironmentFixture = (
  overrides: Partial<MediaQueryEnvironment> = {},
): MediaQueryEnvironment => ({
  componentWidth: 0,
  componentHeight: 0,
  devicePixelRatio: 1,
  colorScheme: 'light',
  ...DEFAULT_INPUT_MEDIA_FEATURES,
  ...overrides,
});