refactor: monorepo setup with lerna (#243)

This commit is contained in:
Daniel Lautzenheiser
2022-12-15 13:44:49 -05:00
committed by GitHub
parent dac29fbf3c
commit 504d95c34f
706 changed files with 16571 additions and 142 deletions

View File

@ -0,0 +1,22 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
const mockLocalStorage = (function () {
let store: Record<string, any> = {};
return {
getItem(key: string) {
return store[key] ?? null;
},
setItem(key: string, value: any) {
store[key] = value.toString();
},
clear() {
store = {};
},
removeItem(key: string) {
delete store[key];
},
};
})();
Object.defineProperty(window, 'localStorage', { value: mockLocalStorage });
export {};