Hooks like `useEffect` or `useLayoutEffect` will _never_ have names, so if a the only hooks for a given source file are these "unnamed" built-in hooks, we should skip loading the source code.
const hooksTree = inspectHooks(Component, props, undefined, true);
    const hookNames = await parseHookNames(hooksTree);
    return hookNames;
  }
  it('should parse names for useState()', async () => {
    const Component = require('./__source__/__untransformed__/ComponentWithUseState')
      .Component;
    const hookNames = await getHookNamesForComponent(Component);
    expectHookNamesToEqual(hookNames, ['foo', 'bar', 'baz']);
  });
  it('should parse names for useReducer()', async () => {
    const Component = require('./__source__/__untransformed__/ComponentWithUseReducer')
      .Component;
    const hookNames = await getHookNamesForComponent(Component);
    expectHookNamesToEqual(hookNames, ['foo', 'bar', 'baz']);
  });
  it('should return null for hooks without names like useEffect', async () => {
    const Component = require('./__source__/__untransformed__/ComponentWithUseEffect')
      .Component;
    const hookNames = await getHookNamesForComponent(Component);
    expectHookNamesToEqual(hookNames, []); 
  });
  it('should parse names for custom hooks', async () => {
    const Component = require('./__source__/__untransformed__/ComponentWithNamedCustomHooks')
      .Component;
    const hookNames = await getHookNamesForComponent(Component);
    expectHookNamesToEqual(hookNames, [