These are chat archives for AngularClass/angular2-webpack-starter

11th
Feb 2016
adyster
@adyster
Feb 11 2016 04:36
Is it possible to turn off optimize assets (at least for dev server)? After installing ng2-bootstrap, it takes a long time to process
Jamie Spittal
@Spittal
Feb 11 2016 04:52
Did you change the devtool in web pack?
eval is significantly faster than source-map
adyster
@adyster
Feb 11 2016 08:52
Even after changing it, it still takes a long time. It gets stuck on that optimize assets
Takes about 25 seconds to complete
binarious
@binarious
Feb 11 2016 11:01

The current setting doesn't fail the tests when a JS error is thrown. For example this test succeeds:

it('should init',
        injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
            return tcb.createAsync(TestCmp).then((fixture: any) => {
                fixture.detectChanges();

                let component: TestCmp = fixture.debugElement.componentInstance;
                let compiled = fixture.debugElement.nativeElement;

                console.log(component.viewChild); // LOG: undefined
                expect(component.viewChild.checkedValidity).toBe(false);  // should throw an error
                expect(component.viewChild.checkingValidity).toBe(false);
                expect(component.viewChild.valid).toBe(false);
                expect(component.viewChild.validationError).toBe('');
            });
        })
    );

Any ideas what to do?