hunk.code_window:     const cfg = JSON.parse(tree.readContent('/angular.json'));
       expect(cfg.projects['@myScope/myLib']).toBeDefined();
     });
   });
hunk.labels: keep keep add keep
hunk.after_edit:   it(`should set coverage folder to "coverage/foo"`, () => {
       const tree = schematicRunner.runSchematic('library', defaultOptions, workspaceTree);
       const karmaConf = getFileContent(tree, '/projects/foo/karma.conf.js');
       expect(karmaConf).toContain(`dir: require('path').join(__dirname, '../../coverage/foo')`);
     });
  
hunk.file_path: packages/schematics/angular/library/index_spec.ts
hunk.type: add
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);
  }
  