dvStudioLoadLibrariesForTest function

  1. @visibleForTesting
Future<void> dvStudioLoadLibrariesForTest()

Loads both of Studio's deferred libraries, for a widget test.

The VM loads a deferred library once per isolate and hands every later caller the first load's future. A widget test runs each case on a fake clock of its own, so a library first loaded inside one case never loads for the next. Loaded here, from setUpAll, on the real clock, it is already there for every case.

Implementation

@visibleForTesting
Future<void> dvStudioLoadLibrariesForTest() async {
  await dartvel_studio.loadLibrary();
  await dartvel_studio_sign_in.loadLibrary();
}