export function mockLocalStorage() {
    const localStorageMock = (() => {
        let store = {};
        return {
            getItem: (key) => store[key] || null,
            setItem: (key, value) => {
                store[key] = value;
            },
            removeItem: (key) => {
                delete store[key];
            },
            clear: () => {
                store = {};
            },
        };
    })();
    Object.defineProperty(global, "localStorage", {
        value: localStorageMock,
    });
}
//# sourceMappingURL=localStorage.js.map