Yavor Georgiev
a66198fe46
make tests require the symlinked realm module
2016-10-13 16:09:14 +02:00
Ari Lazier
857369f5a4
download core and sync and get the test app running on sync
2016-10-04 17:27:09 -07:00
Ari Lazier
9d0df0de3d
Sync and fine grained notifications
2016-10-04 15:07:14 -07:00
Ari Lazier
1ea107258f
don't run npm install multiple times
2016-08-19 10:07:15 -07:00
Yavor Georgiev
fb7911e3fa
add support for the jest runner’s node environment
2016-08-10 15:50:37 +02:00
Yavor Georgiev
1a98077794
Add tests to ensure realm-js is usable inside mocha and ava tests
2016-08-10 15:47:55 +02:00
Ari Lazier
af0ddcdd3d
Merge pull request #533 from realm/mr/deprecate-type
...
Remove usage of Realm.Types in the spec and deprecate it
2016-08-08 12:27:11 -07:00
Ari Lazier
9c8a1ed8ae
fixes for RN 0.31.0
2016-08-07 09:33:36 -07:00
Marius Rackwitz
9d25435105
[Tests] Stop using Realm.Types
2016-08-04 10:10:28 -07:00
Ari Lazier
3b75de4554
test app and compile fixes for RN android 0.29.0+
2016-07-31 14:25:13 -07:00
Ari Lazier
d2f733f168
support latest react-native version
2016-07-31 14:23:12 -07:00
Scott Kyle
e8ea8e493e
Fix for linker error when building for iOS 7
...
By default, React Native projects target a minimum of iOS 7, but our projects were set to iOS 8 because previously we used a dynamic framework.
When building for an iOS 7 minimum target version, the linker would complain about thread local variables not working on iOS 7. So it was necessary to add even more checks (iOS >= 8 or OS X >= 10.7) before using native thread local variables rather than our shim.
This also changes our projects to target iOS 7 so we can catch these issues quicker in the future.
2016-06-27 12:16:35 -07:00
Scott Kyle
030807e2b9
Fix for failed test stopping tests in ReactTestsApp
2016-06-14 16:57:50 -07:00
Scott Kyle
17e7153a59
Very basic multiprocess change notification test
2016-06-13 17:24:43 -07:00
Scott Kyle
b42f5ab285
Allow Node tests to be asynchronous
2016-06-13 17:24:43 -07:00
Scott Kyle
723b50f649
Allow React tests to be async
2016-06-13 17:24:43 -07:00
Scott Kyle
2384cc4036
Reset Realm.defaultPath in testDefaultPath
...
Or else the rest of the tests use the new default path!
2016-06-13 17:24:43 -07:00
Ari Lazier
c7e156a7b8
Merge pull request #488 from realm/al-typos
...
fixes for typos and added upsert test
2016-06-13 14:51:53 -07:00
Ari Lazier
0a4e0665ae
fixes for typos and added upsert test
2016-06-13 14:46:26 -07:00
Ari Lazier
3901bf53dc
Merge pull request #479 from realm/al-muti-realm
...
fix for setting properties to objects from other realms
2016-06-13 14:44:28 -07:00
Ari Lazier
61e74c3059
Merge pull request #472 from realm/sk-primary-key-api
...
Implement objectForPrimaryKey() method
2016-06-13 14:18:29 -07:00
Scott Kyle
cd20d870dd
Fix crash from querying with object from another Realm
2016-06-09 15:32:37 -07:00
Ari Lazier
81feca0ce9
fix for setting properties to objects from other realms
2016-06-08 11:22:12 -07:00
Scott Kyle
c8df1cddec
Update projects to React Native 0.27.1
2016-06-07 18:23:11 -07:00
Scott Kyle
cd0bb079b7
Implement objectForPrimaryKey() method
...
Resolves #328
2016-06-03 16:51:32 -07:00
Scott Kyle
ba6e83191b
Merge pull request #460 from realm/sk-react-native-26
...
Update projects to React Native 0.26.2
2016-05-27 16:33:44 -07:00
Scott Kyle
b76ed20020
Update projects to React Native 0.26.2
...
Fixed some minor issues along the way.
2016-05-27 11:30:17 -07:00
Scott Kyle
af70bb3c63
Fix all linting issues inside JS tests
2016-05-26 15:47:30 -07:00
Scott Kyle
aa09ba3cd4
Factor out some common code in React tests
...
Now iOS and Android share more code. Also converted to using ES6 modules imports and fixed some other linting issues.
2016-05-26 15:47:30 -07:00
Scott Kyle
48394d9c19
Automatically handle deleting test Realms
...
No longer leave this up to the test. All testing passes through the runTest() function, so we use that spot to delete the Realms. It also now deletes them beforehand too since a crash in a previous run could leave a Realm in place.
2016-05-26 15:47:30 -07:00
Scott Kyle
58bff5f939
Remove commented Objective-C query tests
2016-05-26 15:46:53 -07:00
Scott Kyle
78a8311ba6
Merge branch '0.13.x'
...
* 0.13.x:
[0.13.2] Bump version
fix for upgrading optional date properties
2016-05-26 14:36:17 -07:00
Ari Lazier
027d4fd153
fix for upgrading optional date properties
2016-05-26 13:30:51 -07:00
Scott Kyle
f8ba388d14
Fix crash and other errors with Results snapshots
...
When deleteAll() is called on a Realm, it calls clear() on all of its Tables, which seems to not update TableViews unless they are synced. The is_row_attached(row_ndx) method still returns true otherwise. A workaround is here until that is fixed.
Fixes #434
2016-05-24 11:52:02 -07:00
Ari Lazier
9e05728dce
fix for negative timestamps
2016-05-24 11:45:16 -07:00
Scott Kyle
7740665d7d
Merge pull request #449 from realm/sk-crash-fix
...
Fix crash and other errors with Results snapshots
2016-05-24 11:02:53 -07:00
Scott Kyle
60a58382b4
Add tests where deletion happens before snapshot()
2016-05-24 10:23:36 -07:00
Ari Lazier
604fcc73f2
fix for negative timestamps
2016-05-24 08:23:21 -07:00
Scott Kyle
e14e922c39
Fix crash and other errors with Results snapshots
...
When deleteAll() is called on a Realm, it calls clear() on all of its Tables, which seems to not update TableViews unless they are synced. The is_row_attached(row_ndx) method still returns true otherwise. A workaround is here until that is fixed.
Fixes #434
2016-05-20 13:42:17 -07:00
Ari Lazier
fd25afe214
add isValid methods to results and list
2016-05-16 16:01:14 -07:00
Scott Kyle
9370eba229
Merge pull request #436 from realm/sk-react-native-25
...
Updates for React Native 0.25
2016-05-16 14:22:59 -07:00
Scott Kyle
02b770b79a
Fix ESLint errors
2016-05-16 14:15:56 -07:00
Ari Lazier
0f74101074
Merge pull request #423 from realm/al-timestamp
...
Use new timestamp format
2016-05-16 13:52:31 -07:00
Scott Kyle
55bbcc9e56
Fix ReactTestApp imports for React Native 0.25
2016-05-16 13:24:44 -07:00
Scott Kyle
8db0161ed8
Update projects to React Native 0.25
2016-05-16 13:20:50 -07:00
Scott Kyle
7a26d192ba
Merge pull request #427 from realm/sk-object-inheritance
...
Fix ES6 class inheritance of Realm.Object with Babel
2016-05-16 11:17:45 -07:00
Scott Kyle
5bc72ab2cf
Make Date testing work for Node
2016-05-13 16:30:57 -07:00
Scott Kyle
c803efd01b
Use ".realm" extension in tests for proper cleanup
2016-05-13 15:47:57 -07:00
Ari Lazier
125dd0d1c7
merge it
2016-05-13 15:41:10 -07:00
Ari Lazier
2d2764a4d6
add missing files
2016-05-13 15:31:59 -07:00