-
Notifications
You must be signed in to change notification settings - Fork 585
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
Realm.schemaVersion returns 18446744073709552000 instead of -1 in test #6119
Comments
@Yupeng-li I am surprised if the code snippet worked before v12.0.0. We have |
Hi @kneth , it's in the latest version of realm https://github.com/realm/realm-js/blob/main/packages/realm/src/Realm.ts#L378 and it's documented here Thank you for pointing me to |
@Yupeng-li Sorry, I was too fast to say that You can still use |
@kneth No worries, thank you very much! |
@Yupeng-li We have a bug fix in #6126 |
How frequently does the bug occur?
Always
Description
I use jest to test the realm related logic. Since Realm v12, some of tests start failing because Realm.schemaVersion doesn't return -1 if realm file doesn't exist. Below is a quick test to show the issue.
It works as expected in our react-native app.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
12.1.0
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Mac OS 13.5.1 (22G90)
Build environment
RN 0.71.13
Cocoapods version
1.12.1
The text was updated successfully, but these errors were encountered: