server-only.mock.ts 377 B

1234567891011
  1. /**
  2. * Mock for 'server-only' package in test environment
  3. *
  4. * The real 'server-only' package throws an error when imported in client components.
  5. * In Vitest test environment, we need to mock it to allow importing server-side code.
  6. *
  7. * This is a no-op module that does nothing, which is fine for tests.
  8. */
  9. // Export empty object to satisfy any imports
  10. export default {};