message: Mock useFlag in CloudShellTerminal tests
diff: @@ -6,6 +6,7 @@ import TerminalLoadingBox from '../TerminalLoadingBox';
  import { user } from './cloud-shell-test-data';
  import useCloudShellWorkspace from '../useCloudShellWorkspace';
  import CloudShellDeveloperSetup from '../setup/CloudShellDeveloperSetup';
  +import { useFlag } from '@console/shared';
  jest.mock('../useCloudShellWorkspace', () => ({
  default: jest.fn(),
  @@ -29,8 +30,19 @@ jest.mock('@console/shared/src/hooks/useUserSettingsCompatibility', () => {
  };
  });
  +jest.mock('@console/shared', () => {
  + const originalModule = (jest as any).requireActual('@console/shared');
  + return {
  + ...originalModule,
  + useFlag: jest.fn<boolean>(),
  + };
  +});
  +
  +const useFlagMock = useFlag as jest.Mock;
  +
  describe('CloudShellTerminal', () => {
  it('should display loading box', () => {
  + useFlagMock.mockReturnValue(true);
  (useCloudShellWorkspace as jest.Mock).mockReturnValueOnce([null, false]);
  const wrapper = shallow(
  <InternalCloudShellTerminal
  @@ -43,6 +55,7 @@ describe('CloudShellTerminal', () => {
  });
  it('should display error statusBox', () => {
  + useFlagMock.mockReturnValue(true);
  (useCloudShellWorkspace as jest.Mock).mockReturnValueOnce([null, false, true]);
  const wrapper = shallow(
  <InternalCloudShellTerminal
  @@ -55,6 +68,7 @@ describe('CloudShellTerminal', () => {
  });
  it('should display form if loaded and no workspace', () => {
  + useFlagMock.mockReturnValue(true);
  (useCloudShellWorkspace as jest.Mock).mockReturnValueOnce([[], true]);
  const wrapper = shallow(
  <InternalCloudShellTerminal
  