제스트를 사용하여 Vuejs 어플리케이션에서 window.location.assign을 감시하는 방법 유닛 테스트를 위해 window.location.assign을 해야 합니다.하지만 테스트를 실행하면 이 오류가 발생합니다. Cannot spy the assign property because it is not a function; undefined given instead 코드는 다음과 같습니다. jest.spyOn(window.location, "assign"); 이 건에 대한 힌트나 해결책을 주실 수 있는 분 계십니까?Jese v25(JSDOM의 새로운 버전을 사용)로 인해 다음 오류가 발생합니다. TypeError: Cannot assign to read only property 'assign' ..