Open quisido opened 2 months ago
@quisido Can you please add a reproduction for this? As long as a document exists, JSDOM implicitly creates document.body
for you.
@quisido Can you please add a reproduction for this? As long as a document exists, JSDOM implicitly creates
document.body
for you.
Are you unable to reproduce it? I've hit this in two separate projects just by setting container to document.
As far as I'm aware, using container: document
in any existing test is the only step required to reproduce this.
Two points here:
Just opening this for tracking with the associated PR: #1330 .
When:
(Untested: This bug may require that
Component
render a<body>
element.)Then:
Because:
If we first check that
document.body
is not null, then this error will not occur.