Open coryasilva opened 2 months ago
When using jest this code gets transpiled to require and the file URL syntax of the import is not supported and breaks the testing environment.
Why not just use jest's --experimental-vm-modules flag? Glad you asked. Because of this https://github.com/jestjs/jest/issues/11434#issuecomment-1410445848 which is caused by this https://github.com/nodejs/node/issues/37648 which is ultimately caused by this v8 bug
confirmed that this is a problem when implementing this in backstage, as well. here is the PR related to the fix, that will need to be pulled in: https://github.com/kogosoftwarellc/open-api/pull/908
When using jest this code gets transpiled to require and the file URL syntax of the import is not supported and breaks the testing environment.
Why not just use jest's --experimental-vm-modules flag? Glad you asked. Because of this https://github.com/jestjs/jest/issues/11434#issuecomment-1410445848 which is caused by this https://github.com/nodejs/node/issues/37648 which is ultimately caused by this v8 bug