import { adminHandlers } from './admin'
import { adminSettingsHandlers } from './admin-settings'
import { flightsHandlers } from './flights'
import { annotationsHandlers } from './annotations'
import { detectHandlers } from './detect'
import { loaderHandlers } from './loader'
import { resourceHandlers } from './resource'
import { owmHandlers } from './owm'
import { tilesHandlers } from './tiles'

// Default-handler registration order is irrelevant (MSW matches by request shape),
// but grouping the exports here gives test files a single import surface for
// the seeded baseline. Per-test overrides land via `server.use(...)`.
export const defaultHandlers = [
  ...adminHandlers,
  ...adminSettingsHandlers,
  ...flightsHandlers,
  ...annotationsHandlers,
  ...detectHandlers,
  ...loaderHandlers,
  ...resourceHandlers,
  ...owmHandlers,
  ...tilesHandlers,
]

export {
  adminHandlers,
  adminSettingsHandlers,
  flightsHandlers,
  annotationsHandlers,
  detectHandlers,
  loaderHandlers,
  resourceHandlers,
  owmHandlers,
  tilesHandlers,
}
