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';
10
10
import { host , karmaTargetSpec , runTargetSpec } from '../utils' ;
11
11
12
12
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
+
13
19
describe ( 'Karma Builder' , ( ) => {
14
20
beforeEach ( done => host . initialize ( ) . toPromise ( ) . then ( done , done . fail ) ) ;
15
21
afterEach ( done => host . restore ( ) . toPromise ( ) . then ( done , done . fail ) ) ;
@@ -20,7 +26,9 @@ describe('Karma Builder', () => {
20
26
) . toPromise ( ) . then ( done , done . fail ) ;
21
27
} , 30000 ) ;
22
28
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 ) => {
24
32
host . writeMultipleFiles ( {
25
33
'src/app/app.component.spec.ts' : '<p> definitely not typescript </p>' ,
26
34
} ) ;
You can’t perform that action at this time.
0 commit comments