SyntaxFix
Write A Post
Hire A Developer
Questions
If it's similar to the window location problem at window.location.href can't be changed in tests. #890, you could try (adjusted):
delete global.window.open; global.window = Object.create(window); global.window.open = jest.fn();