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