change getDocument, delay needed, now 2 tests moved

This commit is contained in:
Karsten Hassel 2021-09-24 23:39:12 +02:00
parent a1c7f20990
commit c0ce52abe3
8 changed files with 57 additions and 96 deletions

View file

@ -27,11 +27,11 @@
let enableLog;
if (typeof exports === "object") {
// in nodejs and not running with jest
enableLog = (process.env.JEST_WORKER_ID === undefined);
enableLog = process.env.JEST_WORKER_ID === undefined;
} else {
// in browser and not running with jsdom
enableLog = (typeof window === 'object' && window.name === 'nodejs');
};
enableLog = typeof window === "object" && window.name === "nodejs";
}
if (enableLog) {
logLevel = {