import React from 'react'; import { Browser } from 'webextension-polyfill'; import { renderWithProviders } from '../utils/test-utils'; import MainList from './MainList'; jest.mock('webextension-polyfill', () => { return { runtime: { getManifest: () => ({ version: 'test-version', }), }, } as Browser; }); describe('MainList', () => { let loggingEnabled: boolean, totalTimeLoggedToday: string; beforeEach(() => { loggingEnabled = false; totalTimeLoggedToday = '1/1/1999'; }); it('should render properly', () => { // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const { container } = renderWithProviders( , ); expect(container).toMatchInlineSnapshot(`
`); }); });