Files
notesnook/packages/core/jest.setup.js

12 lines
322 B
JavaScript
Raw Normal View History

var nodeCrypto = require("crypto");
var dotenv = require("dotenv");
const fetch = require("node-fetch");
2022-07-15 09:44:47 +05:00
const linkedom = require("linkedom");
globalThis.DOMParser = linkedom.DOMParser;
globalThis.fetch = fetch;
2022-07-15 09:44:47 +05:00
require("abortcontroller-polyfill/dist/polyfill-patch-fetch");
dotenv.config();
2021-07-12 10:32:35 +05:00
global.crypto = nodeCrypto;