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

feat: unforce module CommonJS when testing with ESM #2199

Merged
merged 1 commit into from Dec 13, 2020
Merged

feat: unforce module CommonJS when testing with ESM #2199

merged 1 commit into from Dec 13, 2020

Commits on Dec 13, 2020

  1. feat: unforce module CommonJS when testing with ESM

    When `extensionsToTreatAsEsm` option is not an empty array, `CommonJS` enforcement will be no longer applicable
    
    BREAKING CHANGE
    To run tests with ESM support, one needs to make sure that:
     - `module` in tsconfig should be either `es2015` or `es2020` or `esnext`
     - Use `ts-jest` ESM presets or define value for `extensionsToTreatAsEsm` option properly
    ahnpnl committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    cfa54d7 View commit details
    Browse the repository at this point in the history