import React from 'react';
import { shallow } from 'enzyme';

describe('SomeComponent component', () => {
  let component;

  beforeEach(() => {
    component = shallow(
      <SomeComponent />
    );
  });

  test('should do something', () => {

  });
});

import React from 'react';
import { shallow } from 'enzyme';

import SomeComponent from '../../components/SomeComponent';

describe('SomeComponent component', () => {
  let component;

  beforeEach(() => {
    component = shallow(
      <SomeComponent />
    );
  });

  test('should do something', () => {

  });
});

Add missing import statement