Skip to content

Commit dfaff9e

Browse files
committed
run with --detectOpenHandles
1 parent 08a1e5c commit dfaff9e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/example-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
run: yarn --cwd examples/${{ matrix.example }} typecheck
3333

3434
- name: Test
35-
run: yarn --cwd examples/${{ matrix.example }} test
35+
run: yarn --cwd examples/${{ matrix.example }} test --detectOpenHandles

examples/cookbook/app/network-requests/__tests__/PhoneBook.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { User } from '../types';
66

77
jest.mock('axios');
88

9-
// jest.setTimeout(10000);
10-
jest.useFakeTimers();
9+
jest.setTimeout(10000);
1110
describe('PhoneBook', () => {
1211
it('fetches contacts successfully and renders in list', async () => {
1312
(global.fetch as jest.Mock).mockResolvedValueOnce({

0 commit comments

Comments
 (0)