You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered: