jest-electron-runner icon indicating copy to clipboard operation
jest-electron-runner copied to clipboard

The "options.context" property must be an vm.Context.

Open unional opened this issue 4 months ago • 0 comments

TypeError: The "options.context" property must be an vm.Context. Received an instance of Object

          at Runtime.loadEsmModule (../../node_modules/.pnpm/[email protected]/node_modules/jest-runtime/build/index.js:516:20) 

Getting this error when using NODE_OPTIONS=--experimental-vm-modules.

It could be a non-issue as electron doesn't really support ESM yet (although latest version starts supporting it), but opening this issue for reference.

unional avatar Feb 19 '24 22:02 unional