I'm trying to run some tests from within the VM. Thought I could use Node's Test Runner but ended up having VMError: Cannot find module 'node:test' error. I confirm I've tried to add the package as a builtin to the NodeVM configuration.
Ended up using the mock feature as alternative - seems to work fine - here's a working example:
Hi there!
I'm trying to run some tests from within the VM. Thought I could use Node's Test Runner but ended up having
VMError: Cannot find module 'node:test'
error. I confirm I've tried to add the package as a builtin to the NodeVM configuration.Ended up using the mock feature as alternative - seems to work fine - here's a working example:
I'm curious to know why isn't this package available as a builtin and whether you find this a good alternative.
Node version: v18.16.0
Thank you!