hunk.code_window:           inlineSourceMap: false,
             sourceRoot: plugin.basePath
           });
           const result = refactor.transpile(compilerOptions);
           cb(null, result.outputText, result.sourceMap);
         })
         .catch(err => cb(err));
     } else {
       const options = loaderUtils.getOptions(this) || {};
       const tsConfigPath = options.tsConfigPath;
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:         if (plugin.failedCompilation) {
             // Return an empty string to prevent extra loader errors (missing imports etc).
             // Plugin errors were already pushed to the compilation errors.
             cb(null, '');
           } else {
             cb(null, result.outputText, result.sourceMap);
           }
  
hunk.file_path: packages/@ngtools/webpack/src/loader.ts
hunk.type: replace
file: import { TestBed, async } from '@angular/core/testing';
  
  import { AppComponent } from './app.component';
  
  describe('AppComponent', () => {
    beforeEach(async(() => {
      TestBed.configureTestingModule({
        declarations: [
          AppComponent
        ],
      }).compileComponents();
    }));
  
    it('should create the app', async(() => {
      const fixture = TestBed.createComponent(AppComponent);
      const app = fixture.debugElement.componentInstance;
      expect(app).toBeTruthy();
    }));
  
    it(`should have the title 'app works!'`, async(() => {
      const fixture = TestBed.createComponent(AppComponent);
      const app = fixture.debugElement.componentInstance;
      expect(app.title).toEqual('app works!');
    }));
  
    it('should render title in a h1 tag', async(() => {
      const fixture = TestBed.createComponent(AppComponent);
      fixture.detectChanges();
      const compiled = fixture.debugElement.nativeElement;
      expect(compiled.querySelector('h1').textContent).toContain('app works!');
    }));
  });
  