function validateCaches() {
  strictEqual(ActiveRenderState.length, 0, 'The ActiveRenderState global should be empty');
  strictEqual(ComponentTreeCache.size, 0, 'The ComponentTree cache should be empty');
  strictEqual(InstanceCache.size, 0, 'The Instance cache should be empty');
  strictEqual(MountCache.size, 0, 'The Mount cache should be empty');

  // Validate that core diffHTML is in a clean state.
   validateMemory();
}
Validates that the caches has been successfully cleaned per render.