PR #17599 broke `yarn test-build-devtools`. (b6c423daadaa35da3f34048628df9635505eecb1 is not broken,  0cf22a56a18790ef34c71bef14f64695c0498619 is broken)
```
    Configuration error:
    
    Could not locate module shared/consoleWithStackDev mapped as:
    /Users/bvaughn/Documents/git/react/build/node_modules/shared/consoleWithStackDev.
    
    Please check your configuration for these entries:
    {
      "moduleNameMapper": {
        "/^shared\/([^\/]+)$/": "/Users/bvaughn/Documents/git/react/build/node_modules/shared/$1"
      },
      "resolver": null
    }
```
const ids = [
      {
        
        id: ((store.getElementIDAtIndex(1): any): number),
        shouldHaveLegacyContext: true,
      },
      {
        
        id: ((store.getElementIDAtIndex(2): any): number),
        shouldHaveLegacyContext: false,
      },
      {
        
        id: ((store.getElementIDAtIndex(3): any): number),
        shouldHaveLegacyContext: false,
      },
      {
        
        id: ((store.getElementIDAtIndex(5): any): number),
        shouldHaveLegacyContext: false,
      },
    ];
    function Suspender({target, shouldHaveLegacyContext}) {
      const {getInspectedElement} = React.useContext(InspectedElementContext);
      const inspectedElement = getInspectedElement(target);
      expect(inspectedElement.context).not.toBe(null);
      expect(inspectedElement.hasLegacyContext).toBe(shouldHaveLegacyContext);
      return null;
    }
    for (let i = 0; i < ids.length; i++) {