File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ export function patchJest(Zone: ZoneType): void {
131131 } ;
132132 context [ methodName ] . each = wrapTestFactoryInZone ( ( originalJestFn as any ) . each ) ;
133133 context [ methodName ] . todo = ( originalJestFn as any ) . todo ;
134+ context [ methodName ] . failing = ( originalJestFn as any ) . failing ;
134135 } ) ;
135136
136137 context . it . only = context . fit ;
Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ it.each`
9696 expect ( bar ) . toBe ( 2 ) ;
9797} ) ;
9898
99+ it . failing ( 'it is not equal' , ( ) => {
100+ expect ( 5 ) . toBe ( 6 ) ; // this test will pass
101+ } ) ;
102+
99103test ( 'test' , ( ) => {
100104 assertInsideProxyZone ( ) ;
101105} ) ;
@@ -104,6 +108,9 @@ test.each([[]])('test.each', () => {
104108} ) ;
105109
106110test . todo ( 'todo' ) ;
111+ test . failing ( 'it is not equal' , ( ) => {
112+ expect ( 5 ) . toBe ( 6 ) ; // this test will pass
113+ } ) ;
107114
108115function enableJestPatch ( ) {
109116 global [ Zone . __symbol__ ( 'fakeAsyncDisablePatchingFakeTimer' ) ] = true ;
You can’t perform that action at this time.
0 commit comments