So everything was working just fine and great until doing npm update and now things do not work quite as they used to.
A little background: in my code I use jquery
jsdom seems to have a new version therefore now it works on a slightly different way. Here you have an example:
const { JSDOM } = require("jsdom");
const myJSDom = new JSDOM (html);
const $ = require('jquery')(myJSDom.window);
Now you can search as you used to do on jQuery:
$("").html("The title");
Mind the jQuery installation as you should write jquery all lowercase, like npm install jquery.