hunk.code_window: import { moveFile } from '../../utils/fs';
   import { installPackage, uninstallPackage } from '../../utils/packages';
   import { execAndWaitForOutputToMatch, ng } from '../../utils/process';
   import { expectToFail } from '../../utils/utils';
   export default async function () {
  
hunk.labels: keep replace keep keep keep keep
hunk.after_edit: import { getActivePackageManager, installPackage, uninstallPackage } from '../../utils/packages';
  
hunk.file_path: tests/legacy-cli/e2e/tests/commands/builder-not-found.ts
hunk.type: replace
file: import * as fs from 'fs';
  import * as semver from 'semver';
  
  export function readNgVersion(): string {
    const packageJson: any = JSON.parse(
      fs.readFileSync('./node_modules/@angular/core/package.json', 'utf8'),
    );
    return packageJson['version'];
  }
  
  export function ngVersionMatches(range: string): boolean {
    return semver.satisfies(readNgVersion(), range);
  }
  