diff --git a/src/js_sync.hpp b/src/js_sync.hpp index df11d731..f8f30ace 100644 --- a/src/js_sync.hpp +++ b/src/js_sync.hpp @@ -39,7 +39,7 @@ namespace realm { namespace js { -realm::SyncManager& syncManagerShared() { +inline realm::SyncManager& syncManagerShared() { static bool configured = []{ ensure_directory_exists_for_file(default_realm_file_directory()); SyncManager::shared().configure_file_system(default_realm_file_directory(), SyncManager::MetadataMode::NoEncryption); diff --git a/tests/js/session-tests.js b/tests/js/session-tests.js index 91f669fe..36b52840 100644 --- a/tests/js/session-tests.js +++ b/tests/js/session-tests.js @@ -37,7 +37,7 @@ let execFile; if (isNodeProccess) { tmp = node_require('tmp'); - fs = node_require('fs-extra'); + fs = node_require('fs'); execFile = node_require('child_process').execFile; tmp.setGracefulCleanup(); }