You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Expose 'window', 'document', and 'body' to the REPL context
101
+
replServer.context.window=dom.window;
102
+
replServer.context.document=dom.window.document;
103
+
replServer.context.body=dom.window.document.body;
104
+
replServer.context.JSDOM=JSDOM;// Ensure JSDOM class is also available if needed for new DOMs
105
+
106
+
console.log(`A 'document' and 'window' are ready to use.
107
+
Try: ${style.purple}const div = document.createElement('div'); div.textContent = 'Check me out Son!'; document.body.appendChild(div); document.body.innerHTML${style.reset}`
0 commit comments