mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
var nodeCrypto = require("crypto");
|
|
var dotenv = require("dotenv");
|
|
const fetch = require("node-fetch");
|
|
const linkedom = require("linkedom");
|
|
const { initalize } = require("./logger");
|
|
const StorageInterface = require("./__mocks__/storage.mock");
|
|
initalize(StorageInterface);
|
|
|
|
globalThis.DOMParser = linkedom.DOMParser;
|
|
globalThis.fetch = fetch;
|
|
require("abortcontroller-polyfill/dist/polyfill-patch-fetch");
|
|
|
|
dotenv.config();
|
|
|
|
global.crypto = nodeCrypto;
|