// #region StoresMock [C:1] [TYPE Module] [SEMANTICS mock, store, test, stub]

// #region StoresMock:Module [TYPE Function]
// @SEMANTICS: mock, stores, sveltekit-v1-legacy-surface
// @PURPOSE: Mock for $app/stores in tests
// @INVARIANT: Mocks $app/stores which is a SvelteKit v1 module; SvelteKit v2 uses $app/state. Verify no active test files import this mock before removal.
// @RELATION DEPENDS_ON -> [EXT:sveltekit:$app/stores]
// @RELATION BINDS_TO -> [EXT:frontend:setupTests]

import { writable, readable } from 'svelte/store';

export const page = readable({
  url: new URL('http://localhost'),
  params: {},
  route: { id: 'test' },
  status: 200,
  error: null,
  data: {},
  form: null
});

export const navigating = writable(null);

export const updated = {
  check: () => Promise.resolve(false),
  subscribe: writable(false).subscribe
};

// #endregion StoresMock:Module
// #endregion StoresMock
