Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/babel-jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ _Note: this step is only required if you are using `babel-jest` with additional

To explicitly define `babel-jest` as a transformer for your JavaScript code, map _.js_ files to the `babel-jest` module. Typescript files are also supported.

By default, it loads your existing Babel configuration (if any)

```json
"transform": {
"\\.[jt]sx?$": "babel-jest"
},
```

You can use also pass further [babel options](https://babeljs.io/docs/options)

```json
"transform": {
"\\.[jt]sx?$": ["babel-jest", { "extends": "./babel.config.js", "plugins": ["babel-plugin-transform-import-meta"] }]
},
```