lundi 5 juin 2017

Angular 2 test - compileComponents skip styles compilation

I want to skip over the compilation of my component styles (or even compile an empty string) because they cause some errors, There is a way to do this in Angular tests?

beforeEach(async(() => {
  TestBed.configureTestingModule({
    declarations: [ BannerComponent ]
  })
  .compileComponents();  // compile template and css
}));

Aucun commentaire:

Enregistrer un commentaire