Jest unit test fails but it shouldnt
This fixed the issue:
beforeEach(() => {
jest.spyOn(window.navigator, "language", "get");
});
This fixed the issue:
beforeEach(() => {
jest.spyOn(window.navigator, "language", "get");
});