Skip to content

Releases: callstack/react-native-testing-library

v13.0.0-rc.0

08 Dec 10:48
Compare
Choose a tag to compare
v13.0.0-rc.0 Pre-release
Pre-release

13.0.0-rc.0 (2024-12-13)

Migration guide

Important Changes

  • Enabled concurrent rendering by default
  • Automatically extend Jest matchers, you no longer need to import @testing-library/react-native/extend-expect. Importing @testing-library/react-native will be enough.
  • remove host component name auto-detection. Test should run faster.

Removed

  • *ByA11yState queries have been removed use *ByRole queries or toHaveAccessibilityState matcher instead
  • *ByA11yValue queries have been removed use *ByRole queries or toHaveAccessibleValue matcher instead
  • Removed support for React 16 & 17. Supports React 18 and 19.
  • Removed debug.shallow method
  • Removed @testing-library/react-native Jest preset (useful for React 17). Just use regular react-native Jest preset.

Other changes (should have no visible effects):

  • new implementation of flushMicrotaskQueue
  • slightly different way to calculate a11y labels
  • uses React's implementation of act instead of React Test Renderer's

v12.9.0

27 Nov 09:10
Compare
Choose a tag to compare

12.9.0 (2024-11-27)

This version officially supports React Native 0.77 & Expo 52.

✨ Features

📚 Documentation

v14.0.0-alpha.0

20 Nov 23:19
Compare
Choose a tag to compare
v14.0.0-alpha.0 Pre-release
Pre-release

14.0.0-alpha.0 (2024-11-20)

This is the early alpha of RNTL v14 using universal-test-renderer instead of deprecated react-test-renderer.

✨ Features

  • transition to universal-test-renderer test renderer (c321efd)

v13.0.0-beta.0

12 Nov 21:20
Compare
Choose a tag to compare
v13.0.0-beta.0 Pre-release
Pre-release

13.0.0-beta.0 (2024-11-12)

Removed:

  • *ByA11yState queries have been removed use *ByRole queries or toHaveAccessibilityState matcher instead
  • *ByA11yValue queries have been removed use *ByRole queries or toHaveAccessibleValue matcher instead
  • Removed support for React 16 & 17. Supports React 18 and 19.
  • Removed debug.shallow method
  • Removed @testing-library/react-native Jest preset (useful for React 17). Just use regular react-native Jest preset.

Important Changes:

  • Enabled concurrent rendering by default
  • Automatically extend Jest matchers, you no longer need to import @testing-library/react-native/extend-expect. Importing @testing-library/react-native will be enough.
  • remove host component name auto-detection. Test should run faster.

Other changes (should have no visible effects):

  • new implementation of flushMicrotaskQueue
  • slightly different way to calculate a11y labels
  • uses React's implementation of act instead of React Test Renderer's

No externally visible changes since 13.0.0.-alpha.2.

v13.0.0-alpha.2

07 Nov 09:12
Compare
Choose a tag to compare
v13.0.0-alpha.2 Pre-release
Pre-release

13.0.0-alpha.2 (2024-11-07)

✂️ Removed

Full Changelog: v13.0.0-alpha.1...v13.0.0-alpha.2

v13.0.0-alpha.1

05 Nov 08:38
Compare
Choose a tag to compare
v13.0.0-alpha.1 Pre-release
Pre-release

13.0.0-alpha.1 (2024-11-05)

✨ Features

Changes

v12.8.1

31 Oct 07:41
Compare
Choose a tag to compare

12.8.1 (2024-10-31)

🐛 Bug Fixes

v13.0.0-alpha.0

25 Oct 09:09
Compare
Choose a tag to compare
v13.0.0-alpha.0 Pre-release
Pre-release

13.0.0-alpha.0 (2024-10-25)

✨ Features

🪚 Removed functionalities

  • remove support for older version of React Native (pre 0.71.0) and React (pre 18.2.0)
  • remove deprecated *ByAccessibilityState, & *ByAccessibilityValue queries
  • remove debug.shallow

🐨 Other

  • switch to modern flushMicroTasks

v12.8.0

25 Oct 07:28
Compare
Choose a tag to compare

12.8.0 (2024-10-25)

✨ Features

  • option for enabling concurrent rendering (#1685) (f231ea3)

📚 Documentation

v12.7.2 (2024-09-12)

12 Sep 09:59
Compare
Choose a tag to compare

What's Changed

Features

Bug Fixes

Other

New Contributors

Full Changelog: v12.6.1...v12.7.1