hunk.code_window: const semverCheck = (component, serverVersion) => {
     if (component in componentsSemver) {
       const componentCoerce = semver.valid(
         semver.coerce(componentsSemver[component])
       );
       if (componentCoerce == null) {
         return false;
       }
  
hunk.labels: keep keep keep replace replace replace keep keep keep keep
hunk.after_edit:     const componentCoerce = semver.valid(componentsSemver[component]);
  
hunk.file_path: console/src/helpers/semver.js
hunk.type: replace
file: /* eslint import/prefer-default-export: 0 */
  
  import { validateMigrationMode } from '../../validators/validators';
  
  import { toggleOnMigrationMode, toggleOffMigrationMode } from './utils';
  import { getElementFromAlias } from '../../../helpers/dataHelpers';
  
  export const testToggleButton = () => {
    // eslint-disable-line
    // Turn off migration mode
    toggleOffMigrationMode();
    cy.wait(10000);
    // Validate
    validateMigrationMode(false);
    cy.wait(7000);
    // Turn on migration mode
    toggleOnMigrationMode();
    cy.wait(10000);
    // Validate
    validateMigrationMode(true);
    cy.wait(7000);
    cy.get(getElementFromAlias('schema')).click();
  };
  
  export const checkToggleButton = () => {
    cy.window().then(win => {
      const { consoleMode } = win.__env;
      if (consoleMode === 'cli') {
        testToggleButton();
      } else {
        cy.get('[class=react-toggle-track]').should('not.exist');
      }
    });
  };
  