Closed Heathermcx closed 8 months ago
Hello, thanks for the PR!
I am wondering why can't we mock the JS call in unit tests and set a rectangle as we want. Making it nullable doesn't seem okay to me since we're supposed to have the bounds of the diagram, otherwise many features fail.
Nice PR, was going to do the same, thanks for the effort :)
Thank you for the feedback. We have decided that we will mock the JS for our tests.
Handle null rectangle gracefully so that diagram can render in unit test without JS.