delete window.location;
window.location = {
href: `${location.href}?redirectTo=${redirectTo}`,
- };
+ } as any;
Object.defineProperty(window, 'sessionStorage', {
value: {
setItem: jest.fn(),
delete window.location;
window.location = {
href: `${location.href}?redirectTo=${redirectTo}`,
- };
+ } as any;
Object.defineProperty(window, 'sessionStorage', {
value: {
getItem: () => redirectTo,