Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default export of jest-environment if present #331

Merged
merged 1 commit into from Mar 7, 2022

Commits on Mar 7, 2022

  1. Use default export of jest-environment if present

    Jest v28 is going to start using ESM, and the latest release candidate
    has started exporting modules with ESM syntax:
    
    jestjs/jest#12340
    
    This breaks jest-mongodb when importing jest-environment-node. In order
    to properly import this module when running in jest v28 we need to look
    for the default export.
    
    If the default export is present, use that, otherwise use the test
    environment as normal.
    noseworthy committed Mar 7, 2022
    Configuration menu
    Copy the full SHA
    b30747c View commit details
    Browse the repository at this point in the history