<commit_before>import React from 'react';
import { shallow } from 'enzyme';
import configureMockStore from 'redux-mock-store';
import App from './App';
import { VIEW_MODE } from '../shared/ducks/ui/ui';

describe('App', () => {
  jest.mock('react', () => {
      const React = jest.requireActual('react');
      React.Suspense = ({ children }) => children;
      return React;
  });

  it('should render the homepage', () => {
    const store = configureMockStore()({
      ui: {
        isEmbed: false,
        isEmbedPreview: false,
        isPrintMode: false,
        viewMode: VIEW_MODE.FULL
      },
      map: {
        view: 'home'
      },
      user: {},
      error: {
        hassErrors: false
      }
    });
    const component = shallow(
      <App />, { context: { store } }
    ).dive();
    expect(component).toMatchSnapshot();
  });<commit_msg>Fixed linting<commit_after>import React from 'react';
import { shallow } from 'enzyme';
import configureMockStore from 'redux-mock-store';
import App from './App';
import { VIEW_MODE } from '../shared/ducks/ui/ui';

describe('App', () => {
  jest.mock('react', () => {
    // eslint-disable-next-line no-shadow
    const React = jest.requireActual('react');
    React.Suspense = ({ children }) => children;
    return React;
  });

  it('should render the homepage', () => {
    const store = configureMockStore()({
      ui: {
        isEmbed: false,
        isEmbedPreview: false,
        isPrintMode: false,
        viewMode: VIEW_MODE.FULL
      },
      map: {
        view: 'home'
      },
      user: {},
      error: {
        hassErrors: false
      }
    });
    const component = shallow(
      <App />, { context: { store } }
    ).dive();
    expect(component).toMatchSnapshot();
  });
{'fraction_non_alphanumeric': 0.1625, 'fraction_numerical': 0.0, 'mean_word_length': 2.380038387715931, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6919333', 'n_tokens_mistral': 548, 'n_tokens_neox': 537, 'n_words': 125}