function log(label, spaces) {
  if (!debug) return;

  console.log(`${label} -----------------`);
  console.log(document.body.children.length);
  const logChildren = c => console.log(c.nodeName, c.className, c.id);
  document.body.children.forEach(logChildren);

  ariaAppLog();
  bodyTrapLog();
  classListLog();
  focusManagerLog();
  portalInstancesLog();

  console.log(`end ${label} -----------------` + (!spaces ? '' : `


`));
}
This log is used to see if there are leaks in between tests.