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

refactor(config): remove support for astTransformers string array #2129

Merged
merged 2 commits into from Nov 11, 2020
Merged

refactor(config): remove support for astTransformers string array #2129

merged 2 commits into from Nov 11, 2020

Commits on Nov 10, 2020

  1. refactor(config): remove support for astTransformers string array

    BREAKING CHANGE:
    One is defining ast transformers in `jest.config.js`/`package.json` should change to
    ```
    // jest.config.js
    module.exports = {
       //...
       globals: {
          'ts-jest': {
             astTransformers: {
               before: ['your_before_transformer_path'],
               after: ['your_after_transformer_path'],
               afterDeclarations: ['your_afterDeclarations_transformer_path'],
             }
          }
       }
    }
    ```
    
    or
    ```
    // package.json
    {
      "jest": {
         "globals": {
            "ts-jest": {
               "astTransformers": {
                  "before": ["your_before_transformer_path"],
                  "after": ["your_after_transformer_path"],
                  "afterDeclarations": ["your_afterDeclarations_transformer_path"]
               }
            }
         }
      }
    }
    ```
    ahnpnl committed Nov 10, 2020
    Copy the full SHA
    2c807d0 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2020

  1. Copy the full SHA
    4559b8e View commit details
    Browse the repository at this point in the history