JSDOM.fromURL(`${fullpath}/index.html`, options).then((dom)
JSDOM.fromURL(`${fullpath}/index.html#test`, options).then((dom)
Both do not work due to: "TypeError: Invalid URL:"
JSDOM.fromFile(`${fullpath}/index.html`, options).then((dom)
Works but is not utilising location.hash.
JSDOM.fromFile(`${fullpath}/index.html#hash`, options).then((dom)
Does not work due to: "[Error: ENOENT: no such file or directory, open '/full/path/here/index.html#test']"