const { JSDOM } = require('jsdom'); const { window } = new JSDOM('

Valami

'); const $ = require('jquery')(window); $('h1').html('más'); const content = window.document.querySelector('body'); console.log(content.textContent);