Skip to content

Commit 9d1851d

Browse files
thymikeesourcecode911
authored andcommitted
Fix memory leak in TabView-test.js (react-navigation#3742)
1 parent 28b782d commit 9d1851d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/__tests__/TabView-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const dummyEventSubscriber = (name, handler) => ({
1010
});
1111

1212
describe('TabBarBottom', () => {
13+
jest.useFakeTimers();
14+
1315
it('renders successfully', () => {
1416
const route = { key: 's1', routeName: 's1' };
1517
const navigation = {

0 commit comments

Comments
 (0)