mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
16 lines
466 B
JavaScript
16 lines
466 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;
|