With ES6 in javascript we get a lot of cool things to make it a proper programming language, fun stuff like Proxy.
Recently I found a nice use for Proxies when writing tests however the nodeunit runner doesn’t support the –harmony-proxies parameter a small runner was created to allow us to run tests with working Proxy support. Just create a small script that looks something like this.
And invoke it using:
node --harmony-proxies runtests.js $(find ./tests -name \*.js)