// jest manual mock: firebase/auth
const fakeUser = { uid: 'test-user-123', isAnonymous: true };
const fakeAuth = { currentUser: fakeUser };

export function getAuth() { return fakeAuth; }
export function signInAnonymously(auth) { return Promise.resolve({ user: fakeUser }); }
export function signInWithCustomToken(auth, token) { return Promise.resolve({ user: fakeUser }); }
export function onAuthStateChanged(auth, cb) {
  cb(fakeUser);
  return () => {};
}
