-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Mobile: Upgrade to React Native 0.79 #12337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Mobile: Upgrade to React Native 0.79 #12337
Conversation
expect(itemCheckbox).toHaveAccessibilityState({ checked: initialChecked }); | ||
if (initialChecked) { | ||
expect(itemCheckbox).toBeChecked(); | ||
} else { | ||
expect(itemCheckbox).not.toBeChecked(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new @testing-library/react-native
version removed *AccessibilityState queries.
@@ -2,7 +2,6 @@ import * as React from 'react'; | |||
import { mockMobilePlatform, setupDatabaseAndSynchronizer, switchClient } from '@joplin/lib/testing/test-utils'; | |||
|
|||
import { render, screen, userEvent, waitFor } from '@testing-library/react-native'; | |||
import '@testing-library/react-native/extend-expect'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jest matchers are now extended by default and extend-expect
imports can be removed.
Issue observed during testing: On iOS, the camera doesn't work the first time it's started (perhaps related to the permissions dialog?). |
Summary
This pull request upgrades the mobile app to React Native 0.79 and react-native-web 0.20.
This also:
@testing-library/react-native
to v13.2.0 for React 19 support.Notes
To-do
screens/Note/Note.tsx
(passingstate
toscheduleSave
to fix a save-related race condition observed in tests).