hunk.code_window:     const tree = await schematicRunner.runSchematicAsync('application', options, workspaceTree)
         .toPromise();
       const content = tree.readContent('/projects/foo/.browserslistrc');
       expect(content).toContain(`not IE 9-11 # For IE 9-11 support, remove 'not'.`);
     });
   });
hunk.labels: keep keep keep replace keep keep
hunk.after_edit:     expect(content).toContain('not IE 11');
       expect(content).toContain('not IE 9-10');
  
hunk.file_path: packages/schematics/angular/application/index_spec.ts
hunk.type: replace
file: import { writeFile } from '../../utils/fs';
  import { ng } from '../../utils/process';
  import { updateJsonFile } from '../../utils/project';
  
  export default async function () {
    await writeFile('src/app/app.component.spec.ts', `
        it('show fail', () => {
          expect(undefined).toBeTruthy();
        });
      `);
  
    await updateJsonFile('angular.json', configJson => {
      const appArchitect = configJson.projects['test-project'].architect;
      appArchitect.test.options.sourceMap = {
        scripts: true,
      };
    });
  
    // when sourcemaps are 'on' the stacktrace will point to the spec.ts file.
    try {
      await ng('test', '--watch', 'false');
      throw new Error('ng test should have failed.');
    } catch (error) {
      if (!error.message.includes('app.component.spec.ts')) {
        throw error;
      };
    }
  
    await updateJsonFile('angular.json', configJson => {
      const appArchitect = configJson.projects['test-project'].architect;
      appArchitect.test.options.sourceMap = true;
    });
  
    // when sourcemaps are 'on' the stacktrace will point to the spec.ts file.
    try {
      await ng('test', '--watch', 'false');
      throw new Error('ng test should have failed.');
    } catch (error) {
      if (!error.message.includes('app.component.spec.ts')) {
        throw error;
      };
    }
  
    await updateJsonFile('angular.json', configJson => {
      const appArchitect = configJson.projects['test-project'].architect;
      appArchitect.test.options.sourceMap = false;
    });
  
    // when sourcemaps are 'off' the stacktrace won't point to the spec.ts file.
    try {
      await ng('test', '--watch', 'false');
      throw new Error('ng test should have failed.');
    } catch (error) {
      if (!error.message.includes('main.js')) {
        throw error;
      };
    }
  }
  