Skip to content

Commit f6144fb

Browse files
committed
chore: jest setup config react testing hooks
1 parent e63aaba commit f6144fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

template/jest.setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/asy
55
import 'jest-styled-components';
66
import * as styledSystem from 'styled-system';
77
import { jest } from '@jest/globals';
8+
import { cleanup } from '@testing-library/react-native';
9+
10+
afterEach(cleanup);
811

912
jest.useFakeTimers();
1013

0 commit comments

Comments
 (0)