I found the answer to this myself.
JSDom has a "default document" and also supports several additional documents.
My initial understanding was that including QuerySelector in a document by default would enable it in all documents. This is not true.
I needed to include a QuerySelector in the (non-standard) document that I was creating.
Work code below:
var jsdom = require('jsdom'); var dom = jsdom.defaultLevel;
Launch
console.log(document.querySelector)
Now shown the function exists.
source share