Skip to content

[RN 0.81][Testing] Carousel items not rendered in tests #862

@vicprz

Description

@vicprz

Describe the bug
Since updating to Expo SDK 54 / React Native 0.81, carousel items no longer render in tests.
I tried upgrading to [email protected], but it didn’t make any difference.

Before the update, I was using [email protected] with Expo SDK 53 / React Native 0.79, and carousel items were rendered correctly in tests.

I also tried using the combination of [email protected] and Expo SDK 54 / React Native 0.81, but it didn’t change anything.

To Reproduce
Steps to reproduce the behavior:

  1. Go to: https://github.com/vicprz/expo-54-test-issue/tree/carousel-issue
  2. Run: yarn test -u
  3. Open: __snapshots__/App.test.tsx.snap
  4. Observe: the carousel wrapper is present (testID='carousel'), but carousel items are missing (testID={`carousel-item-${item}`})

Expected behavior
Carousel items should be rendered in tests, as was the case before the update.

Screenshots
N/A

Versions (please complete the following information):

  • react: v19.1.0
  • react-native: v0.81.4
  • react-native-reanimated: v4.1.3
  • react-native-reanimated-carousel: v5.0.0-beta.0
  • react-native-gesture-handler: v2.28.0
  • @testing-library/react-native: 13.3.3
  • jest: 29.7.0
  • jest-expo: 54.0.12

Smartphone (please complete the following information):
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions