{"size": 393, "ext": "js", "max_stars_repo_path": "src/stackoverflow/64858662/example.test.js", "max_stars_repo_name": "mrdulin/jest-codelab", "max_stars_repo_stars_event_min_datetime": "2019-09-15T13:34:42.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-25T17:34:30.000Z", "max_issues_repo_path": "src/stackoverflow/64858662/example.test.js", "max_issues_repo_name": "mrdulin/jest-codelab", "max_issues_repo_issues_event_min_datetime": "2018-10-09T04:31:30.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-06T07:26:42.000Z", "max_forks_repo_path": "src/stackoverflow/64858662/example.test.js", "max_forks_repo_name": "mrdulin/jest-codelab", "max_forks_repo_forks_event_min_datetime": "2020-02-19T10:12:41.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-05T12:15:45.000Z"}
{"max_stars_count": 86, "max_issues_count": 3, "max_forks_count": 31, "avg_line_length": 18.7142857143, "max_line_length": 74, "alphanum_fraction": 0.5776081425}
import Logger from 'logging-library';
import example from './example';

jest.mock(
  'logging-library',
  () => {
    return { error: jest.fn() };
  },
  { virtual: true },
);

describe('64858662', () => {
  afterAll(() => {
    jest.resetAllMocks();
  });
  test('will log an error', () => {
    example();
    expect(Logger.error).toHaveBeenCalledWith(new Error('Example Error'));
  });
});
