Skip to content

openapi-framework: dynamic import breaks jest transpile #909

@coryasilva

Description

@coryasilva

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 jestjs/jest#11434 (comment) which is caused by this nodejs/node#37648 which is ultimately caused by this v8 bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions