beforeAll(() => {
      // Jest's default timeout is 5000, and jest doesn't provide a way of
      // asking what the current timeout is. In Jest 24 and 25, Jasmine was probably
      // the test runner, so we can ask Jasmine if it is there. In later versions of
      // Jest (eg 26 and up), Jasmine may not be defined.