Hosanna UI API v2.3.0-next
    Preparing search index...

    Function mockPlatformModules

    • Mocks platform-specific modules that don't exist in the web test environment. This should be called at the very top of test files, before any other imports.

      Returns void

      // At the very top of your test file, before any other imports:
      import { mockPlatformModules } from '../lib/test-utils';
      mockPlatformModules();

      // Then your regular imports:
      import { describe, it, expect } from 'vitest';