babel-jest
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

babel-jest

Jest plugin to use babel for transformation.

24.9.0  •  Updated 7 months ago  •  by facebook  •  MIT License

Babel jest plugin

Usage

If you are already using jest-cli, just 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": {
  "^.+\\.[t|j]sx?$": "babel-jest"
},

Popularity

Weekly Downloads
5.6M
Stars
28.8K

Maintenance

Development

Last ver 8 months ago
Created 5 years ago
Last commit 3 months ago
12 hours between commits

Technology

Node version: null
7.9K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

329 contributors
Simen Bekkhus
271 commits, 501 merges, 194 PRs
Works at folio-as
Mark Pedrotti
82 commits, 50 merges, 77 PRs
Tim Seckinger
49 commits, 49 merges, 52 PRs
Works at yldio
Michał Pierzchała
19 commits, 75 merges, 21 PRs
Works at callstack
Rubén Norte
54 commits, 35 merges, 37 PRs
Works at facebook
scotthovestadt
32 commits, 33 merges, 35 PRs
Works at Facebook
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.