0

I am trying to test a component in react using jest and react-testing-library where

let newWindow = window.open();

newWindow.document.write()

I am getting error like: “cannot read property write of undefined”. I am not sure on how to achieve this.

Heretic Monkey
  • 11,078
  • 7
  • 55
  • 112

0 Answers0