Buckets:
32.1 GB
673,093 files
Updated 5 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| build | 4 items | ||
| LICENSE | 1.09 kB xet | fb13c6c3 | |
| README.md | 825 Bytes xet | 164ad037 | |
| package.json | 1.12 kB xet | 59cdc5a4 |
babel-jest
Usage
If you are already using jest-cli, add babel-jest and it will automatically compile JavaScript code using Babel.
yarn add --dev babel-jest @babel/core
If you would like to write your own preprocessor, uninstall and delete babel-jest and set the config.transform option to your preprocessor.
Setup
Note: this step is only required if you are using babel-jest with additional code preprocessors.
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.
"transform": {
"\\.[jt]sx?$": "babel-jest"
},
- Total size
- 32.1 GB
- Files
- 673,093
- Last updated
- Mar 19
- Pre-warmed CDN
- US EU US EU