hunk.code_window: import { NodePackageDoesNotSupportSchematics } from '@angular-devkit/schematics/tools';
   import { dirname } from 'path';
   import { intersects, prerelease, rcompare, satisfies, valid, validRange } from 'semver';
   import { isPackageNameSafeForAnalytics } from '../models/analytics';
   import { Arguments } from '../models/interface';
   import { SchematicCommand } from '../models/schematic-command';
   import npmInstall from '../tasks/npm-install';
  
hunk.labels: keep replace keep keep keep keep keep
hunk.after_edit: import { dirname, join } from 'path';
  
hunk.file_path: packages/angular/cli/commands/add-impl.ts
hunk.type: replace
file: // This file is required by karma.conf.js and loads recursively all the .spec and framework files
  
  import 'core-js/es7/reflect';
  import 'zone.js/dist/zone';
  import 'zone.js/dist/zone-testing';
  import { getTestBed } from '@angular/core/testing';
  import {
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting
  } from '@angular/platform-browser-dynamic/testing';
  
  declare const require: any;
  
  // First, initialize the Angular testing environment.
  getTestBed().initTestEnvironment(
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting()
  );
  // Then we find all the tests.
  const context = require.context('./', true, /\.spec\.ts$/);
  // And load the modules.
  context.keys().map(context);
  