Skip to content

Commit

Permalink
fix: rename functions to pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Oct 11, 2024
1 parent e1badd8 commit 3836720
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/perf-test/ChatFinderPage.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, {useMemo} from 'react';
import type {ComponentType} from 'react';
import Onyx from 'react-native-onyx';
import type {OnyxCollection, OnyxEntry} from 'react-native-onyx';
import {measurePerformance} from 'reassure';
import {measureRenders} from 'reassure';
import {LocaleContextProvider} from '@components/LocaleContextProvider';
import OptionListContextProvider, {OptionsListContext} from '@components/OptionListContextProvider';
import {KeyboardStateProvider} from '@components/withKeyboardState';
Expand Down Expand Up @@ -187,7 +187,7 @@ test('[ChatFinderPage] should render list with cached options', async () => {
}),
)
.then(() =>
measurePerformance(
measureRenders(
<ChatFinderPageWithCachedOptions
route={{key: 'ChatFinder_Root', name: 'ChatFinder'}}
navigation={navigation}
Expand Down Expand Up @@ -221,7 +221,7 @@ test('[ChatFinderPage] should interact when text input changes', async () => {
}),
)
.then(() =>
measurePerformance(
measureRenders(
<ChatFinderPageWrapper
route={{key: 'ChatFinder_Root', name: 'ChatFinder'}}
navigation={navigation}
Expand Down
8 changes: 4 additions & 4 deletions tests/perf-test/ReportScreen.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type ReactNative from 'react-native';
import {Dimensions, InteractionManager} from 'react-native';
import Onyx from 'react-native-onyx';
import type Animated from 'react-native-reanimated';
import {measurePerformance} from 'reassure';
import {measureRenders} from 'reassure';
import type {WithNavigationFocusProps} from '@components/withNavigationFocus';
import type Navigation from '@libs/Navigation/Navigation';
import type {PlatformStackNavigationProp, PlatformStackScreenProps} from '@libs/Navigation/PlatformStackNavigation/types';
Expand Down Expand Up @@ -228,7 +228,7 @@ test('[ReportScreen] should render ReportScreen', async () => {
...reportCollectionDataSet,
...reportActionsCollectionDataSet,
});
await measurePerformance(
await measureRenders(
<ReportScreenWrapper
navigation={navigation}
route={mockRoute}
Expand Down Expand Up @@ -263,7 +263,7 @@ test('[ReportScreen] should render composer', async () => {
...reportCollectionDataSet,
...reportActionsCollectionDataSet,
});
await measurePerformance(
await measureRenders(
<ReportScreenWrapper
navigation={navigation}
route={mockRoute}
Expand Down Expand Up @@ -303,7 +303,7 @@ test('[ReportScreen] should render report list', async () => {
...reportCollectionDataSet,
...reportActionsCollectionDataSet,
});
await measurePerformance(
await measureRenders(
<ReportScreenWrapper
navigation={navigation}
route={mockRoute}
Expand Down

0 comments on commit 3836720

Please sign in to comment.