Not that I know of for NodeJS.
The best I've found is to either spin up a container (I believe there is a docker image for each version) or run gremlin server using a script before the code execution.
In my case I needed to run unit-test on Neptune so I used the script method.
I've seen this request a couple of times, if you're also interested I can try to make it open source