mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-09 22:05:57 +00:00
d7c44fa7e9
* Use mockery to set up the realm module path * Use the right path * Add mockery to devDependencies * Remove unnecessary symbolic link
17 lines
368 B
JavaScript
17 lines
368 B
JavaScript
'use strict';
|
|
|
|
const mockery = require('mockery');
|
|
|
|
module.exports = function(realmModulePath) {
|
|
if (typeof REALM_MODULE_PATH !== 'undefined')
|
|
return;
|
|
|
|
global.REALM_MODULE_PATH = realmModulePath;
|
|
|
|
mockery.enable({
|
|
warnOnReplace: false,
|
|
warnOnUnregistered: false
|
|
});
|
|
mockery.registerSubstitute('realm', REALM_MODULE_PATH);
|
|
}
|