I ran into this issue "You need to run with a version of node that supports ES Modules in the VM API. See https://jestjs.io/docs/ecmascript-modules"
which is because of the import of modules in the node_modules/@oas-tools/core/src/entrypoint.cjs:1:98
my node version is 16.19.0, I tried version 18, still the same.
Also tried the suggested solution by https://jestjs.io/docs/ecmascript-modules, still not worked.
here is my .jest.config.ts file
Could anyone help with this?
Cheers.
I expect the import of these two files wouldn't cause problem when doing tests with jest.