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.
global.chrome = {
      extension: {
        getURL: jest.fn((...args) => {
          const {join} = require('path');
          return join(
            __dirname,
            '..',
            '..',
            'node_modules',
            'source-map',
            'lib',
            'mappings.wasm',
          );
        }),
      },
    };
  });
  afterEach(() => {
    fetch.resetMocks();
  });
  function expectHookNamesToEqual(map, expectedNamesArray) {
    
    expect(Array.from(map.values())).toEqual(expectedNamesArray);
  }
  function requireText(path, encoding) {
    const {readFileSync} = require('fs');
    return readFileSync(path, encoding);
  }
  async function getHookNamesForComponent(Component, props = {}) {