text: export default class LocalStorageMock {
    constructor() {
      this.store = {};
    }
  
    clear() {
      this.store = {};
    }
  
    getItem(key) {
      return this.store[key];
    }
  
    setItem(key, value) {
      this.store[key] = value.toString();
    }
  };
  
  global.localStorage = new LocalStorageMock;
  