diff --git a/tests/js/session-tests.js b/tests/js/session-tests.js index 1ea2bf25..390b6cf9 100644 --- a/tests/js/session-tests.js +++ b/tests/js/session-tests.js @@ -476,6 +476,10 @@ module.exports = { if (isNodeProccess) { 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 new Promise((resolve, _reject) => { @@ -510,6 +514,10 @@ module.exports = { if (isNodeProccess) { 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 new Promise((resolve, _reject) => { @@ -546,6 +554,10 @@ module.exports = { if (isNodeProccess) { 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 new Promise((resolve, _reject) => {