Skip to content

Commit 60abad5

Browse files
committed
Run cleanup after each test in PaginationTest
1 parent e6126f8 commit 60abad5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/ui/PaginationTest.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/naming-convention */
22
import * as NativeNavigation from '@react-navigation/native';
3-
import {act, fireEvent, render, screen, waitFor, within} from '@testing-library/react-native';
3+
import {act, cleanup, fireEvent, render, screen, waitFor, within} from '@testing-library/react-native';
44
import {addSeconds, format, subMinutes} from 'date-fns';
55
import React from 'react';
66
import Onyx from 'react-native-onyx';
@@ -286,6 +286,7 @@ async function signInAndGetApp(): Promise<void> {
286286
describe('Pagination', () => {
287287
afterEach(async () => {
288288
await waitForIdle();
289+
cleanup();
289290
await act(async () => {
290291
await Onyx.clear();
291292

0 commit comments

Comments
 (0)