Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/zone.js/lib/jest/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export function patchJest(Zone: ZoneType): void {
};
context[methodName].each = wrapTestFactoryInZone((originalJestFn as any).each);
context[methodName].todo = (originalJestFn as any).todo;
context[methodName].failing = (originalJestFn as any).failing;
});

context.it.only = context.fit;
Expand Down
7 changes: 7 additions & 0 deletions packages/zone.js/test/jest/jest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ it.each`
expect(bar).toBe(2);
});

it.failing('it is not equal', () => {
expect(5).toBe(6); // this test will pass
});

test('test', () => {
assertInsideProxyZone();
});
Expand All @@ -104,6 +108,9 @@ test.each([[]])('test.each', () => {
});

test.todo('todo');
test.failing('it is not equal', () => {
expect(5).toBe(6); // this test will pass
});

function enableJestPatch() {
global[Zone.__symbol__('fakeAsyncDisablePatchingFakeTimer')] = true;
Expand Down