message: core-components: avoid logging in HomepageTimer test
diff: * limitations under the License.
  */
  -import { renderWithEffects, TestApiProvider } from '@backstage/test-utils';
  +import {
  + renderWithEffects,
  + TestApiProvider,
  + withLogCollector,
  +} from '@backstage/test-utils';
  import { HomepageTimer } from './HomepageTimer';
  import React from 'react';
  import { lightTheme } from '@backstage/theme';
  @@ -35,6 +39,7 @@ it('changes default timezone to GMT', async () => {
  context: 'test',
  });
  + const { warn } = await withLogCollector(async () => {
  const rendered = await renderWithEffects(
  <ThemeProvider theme={lightTheme}>
  <TestApiProvider apis={[[configApiRef, configApi]]}>
  @@ -45,3 +50,7 @@ it('changes default timezone to GMT', async () => {
  expect(rendered.getByText('GMT')).toBeInTheDocument();
  });
  + expect(warn).toEqual([
  + 'The timezone America/New_Pork is invalid. Defaulting to GMT',
  + ]);
  +});
  