Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via pnpm

babel-jest 29.7.0

Jest plugin to use babel for transformation.
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
6
licenses
121
MIT
18
ISC
6
BSD-3-Clause
6
other licenses
Apache-2.0
4
CC-BY-4.0
1
BSD-2-Clause
1
Package created
15 Feb 2015
Version published
12 Sep 2023
Maintainers
3
Total deps
151
Direct deps
8
License
MIT

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: @babel/core@7.24.5 & others
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: @babel/core@7.24.5 & others
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
121 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.5
@babel/generator@7.24.5
@babel/helper-compilation-targets@7.23.6
@babel/helper-environment-visitor@7.22.20
@babel/helper-function-name@7.23.0
@babel/helper-hoist-variables@7.22.5
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.24.5
@babel/helper-plugin-utils@7.24.5
@babel/helper-simple-access@7.24.5
@babel/helper-split-export-declaration@7.24.5
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.24.5
@babel/helper-validator-option@7.23.5
@babel/helpers@7.24.5
@babel/highlight@7.24.5
@babel/parser@7.24.5
@babel/plugin-syntax-async-generators@7.8.4
@babel/plugin-syntax-bigint@7.8.3
@babel/plugin-syntax-class-properties@7.12.13
@babel/plugin-syntax-import-meta@7.10.4
@babel/plugin-syntax-json-strings@7.8.3
@babel/plugin-syntax-logical-assignment-operators@7.10.4
@babel/plugin-syntax-nullish-coalescing-operator@7.8.3
@babel/plugin-syntax-numeric-separator@7.10.4
@babel/plugin-syntax-object-rest-spread@7.8.3
@babel/plugin-syntax-optional-catch-binding@7.8.3
@babel/plugin-syntax-optional-chaining@7.8.3
@babel/plugin-syntax-top-level-await@7.14.5
@babel/template@7.24.0
@babel/traverse@7.24.5
@babel/types@7.24.5
@istanbuljs/schema@0.1.3
@jest/schemas@29.6.3
@jest/transform@29.7.0
@jest/types@29.6.3
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
@sinclair/typebox@0.27.8
@types/babel__core@7.20.5
@types/babel__generator@7.6.8
@types/babel__template@7.4.4
@types/babel__traverse@7.20.5
@types/graceful-fs@4.1.9
@types/istanbul-lib-coverage@2.0.6

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
18 Packages, Including:
@istanbuljs/load-nyc-config@1.1.0
anymatch@3.1.3
electron-to-chromium@1.4.774
fs.realpath@1.0.0
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
lru-cache@5.1.1
minimatch@3.1.2
once@1.4.0
picocolors@1.0.1
semver@6.3.1
signal-exit@3.0.7
test-exclude@6.0.0
wrappy@1.0.2
write-file-atomic@4.0.2
yallist@3.1.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
babel-plugin-istanbul@6.1.1
istanbul-lib-coverage@3.2.2
istanbul-lib-instrument@5.2.1
makeerror@1.0.12
sprintf-js@1.0.3
tmpl@1.0.5

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
4 Packages, Including:
@ampproject/remapping@2.3.0
bser@2.1.1
fb-watchman@2.0.2
walker@1.0.8

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001620

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
esprima@4.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

8
All Dependencies CSV
β“˜ This is a list of babel-jest 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@babel/core7.24.5763.27 kBMIT
prod peer
1
1
@jest/transform29.7.012.12 kBMIT
prod
1
1
@types/babel__core7.20.59.48 kBMIT
prod
babel-plugin-istanbul6.1.17.65 kBBSD-3-Clause
prod
1
1
babel-preset-jest29.6.31.53 kBMIT
prod
1
1
chalk4.1.211.31 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
slash3.0.01.8 kBMIT
prod

Visualizations

Frequently Asked Questions

What does babel-jest do?

Babel-jest is a Jest plugin that uses Babel to transform JavaScript code. It enables developers to write tests in latest JavaScript syntax by automatically compiling the code using Babel. Babel-Jest ensures your test code base is in sync with modern JavaScript standards and practices while benefiting from Jest's robust testing capabilities.

How do you use babel-jest?

To use babel-jest, if you already have jest-cli installed, all you need to do is add babel-jest and it will automatically compile your JavaScript code using Babel. You can add the package to your project by running the following command in your terminal:

yarn add --dev babel-jest @babel/core

If you wish to write your own preprocessor, you would need to uninstall and delete babel-jest, and then set the config.transform option to your preprocessor.

For instances where you are using babel-jest with additional code preprocessors, an explicit setup is required. In such cases, you need to define babel-jest as a transformer for your JavaScript code by mapping .js files to the babel-jest module. This also applies to Typescript files. The definition is done in your configuration file like this:

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

Where are the babel-jest docs?

You can find the babel-jest documentation on the Jest official website at https://jestjs.io/docs/configuration. These docs provide a comprehensive guide on how to install, use, and configure babel-jest, among other useful information for developers. The link to the babel-jest GitHub repository is git+https://github.com/jestjs/jest.git, where you can also find insights on the module usage as well as code examples.