-
Why I use Node as the default testing environment instead of JSDOM
A while ago I was updating the Node version from 18 to 20 on Playground. This felt like a good time to review our Node polyfills and I found that we were pollyfilling URL.canParse because it wasn’t available in Node 18. But, when I removed…
-
Don’t use URL to construct paths in Node.js
I’ve been spending some of my time recently making sure WordPress Playground works in Windows.While working on Windows fixes I learned a lot about making sure Javascript code works POSIX and Windows when running it in Node.js. One thing that I learned is that you…