This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/angular_devkit/build_angular/test/karma Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ import { tap } from 'rxjs/operators';
1010import { host , karmaTargetSpec , runTargetSpec } from '../utils' ;
1111
1212
13+ // TODO: replace this with an "it()" macro that's reusable globally.
14+ let linuxOnlyIt : typeof it = it ;
15+ if ( process . platform . startsWith ( 'win' ) ) {
16+ linuxOnlyIt = xit ;
17+ }
18+
1319describe ( 'Karma Builder' , ( ) => {
1420 beforeEach ( done => host . initialize ( ) . toPromise ( ) . then ( done , done . fail ) ) ;
1521 afterEach ( done => host . restore ( ) . toPromise ( ) . then ( done , done . fail ) ) ;
@@ -20,7 +26,9 @@ describe('Karma Builder', () => {
2026 ) . toPromise ( ) . then ( done , done . fail ) ;
2127 } , 30000 ) ;
2228
23- it ( 'fails with broken compilation' , ( done ) => {
29+ // This test seems to succeed on appveyor but not terminate Karma, leaving the port used
30+ // and killing Chrome after 60s. This causes other tests that use Chrome to fail.
31+ linuxOnlyIt ( 'fails with broken compilation' , ( done ) => {
2432 host . writeMultipleFiles ( {
2533 'src/app/app.component.spec.ts' : '<p> definitely not typescript </p>' ,
2634 } ) ;
You can’t perform that action at this time.
0 commit comments