mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
test: use linkedom in jest for tests
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
var nodeCrypto = require("crypto");
|
var nodeCrypto = require("crypto");
|
||||||
var dotenv = require("dotenv");
|
var dotenv = require("dotenv");
|
||||||
const fetch = require("node-fetch");
|
const fetch = require("node-fetch");
|
||||||
|
const linkedom = require("linkedom");
|
||||||
|
globalThis.DOMParser = linkedom.DOMParser;
|
||||||
globalThis.fetch = fetch;
|
globalThis.fetch = fetch;
|
||||||
require("abortcontroller-polyfill/dist/polyfill-patch-fetch")
|
require("abortcontroller-polyfill/dist/polyfill-patch-fetch");
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user