function getGlobals(path) {
    const res = {};
    const { ast } = readGlobalsFile(path, { ast: true });
    ast.program.body.forEach(body => {
      const { declarations } = body.declaration || body;
      if (!declarations) return;
      declarations.forEach(function processId({
        id: {
          left,
          properties,
          name = left && left.name,
        },
      }) {
        if (name) {
          // const NAME = whatever
          // We consider `let` immutable too to avoid unintentional reassignment
          res[name] = false;
        } else if (properties) {
          // const { NAME1, prototype: { NAME2: ALIAS2 } } = whatever
          properties.forEach(({ value }) => processId({ id: value }));
        }
      });
    });
    return res;
  }
'],
    env: {
      'jest/globals': true,
    },
  }],
};

function makeOverrides() {
  /* Note that `injected` uses several more `common` files indirectly, but we check just these
two automatically because they are trivial by design and must always pass the check