I noticed this while using Node 20.x and using the new CustomEvent global.
Inside nodejs this answers true:
try { new CustomEvent('abc', 'abc') } catch (e) { console.log(e instanceof TypeError); }
However when running inside jest it ends up producing false instead.
Initial research points to transpilation being where the source of this problem is likely. However it could also be a jest upstream situation.