fix IncompatibleRealmSynced tests
This commit is contained in:
parent
6062a5ab06
commit
0b439d6c79
|
@ -476,6 +476,10 @@ module.exports = {
|
||||||
if (isNodeProccess) {
|
if (isNodeProccess) {
|
||||||
realm = copyFileToTempDir(path.join(process.cwd(), "data", realm));
|
realm = copyFileToTempDir(path.join(process.cwd(), "data", realm));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
//copy the bundled RN realm files for the test
|
||||||
|
Realm.copyBundledRealmFiles();
|
||||||
|
}
|
||||||
|
|
||||||
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
||||||
return new Promise((resolve, _reject) => {
|
return new Promise((resolve, _reject) => {
|
||||||
|
@ -510,6 +514,10 @@ module.exports = {
|
||||||
if (isNodeProccess) {
|
if (isNodeProccess) {
|
||||||
realm = copyFileToTempDir(path.join(process.cwd(), "data", realm));
|
realm = copyFileToTempDir(path.join(process.cwd(), "data", realm));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
//copy the bundled RN realm files for the test
|
||||||
|
Realm.copyBundledRealmFiles();
|
||||||
|
}
|
||||||
|
|
||||||
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
||||||
return new Promise((resolve, _reject) => {
|
return new Promise((resolve, _reject) => {
|
||||||
|
@ -546,6 +554,10 @@ module.exports = {
|
||||||
if (isNodeProccess) {
|
if (isNodeProccess) {
|
||||||
realm = copyFileToTempDir(path.join(process.cwd(), "data", realm));
|
realm = copyFileToTempDir(path.join(process.cwd(), "data", realm));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
//copy the bundled RN realm files for the test
|
||||||
|
Realm.copyBundledRealmFiles();
|
||||||
|
}
|
||||||
|
|
||||||
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
return Realm.Sync.User.register('http://localhost:9080', uuid(), 'password').then(user => {
|
||||||
return new Promise((resolve, _reject) => {
|
return new Promise((resolve, _reject) => {
|
||||||
|
|
Loading…
Reference in New Issue