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
Example
// 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';
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.