Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 13, 2024 via pnpm
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
7
licenses
229
MIT
28
ISC
13
BSD-3-Clause
8
other licenses
Apache-2.0
5
CC-BY-4.0
1
BSD-2-Clause
1
(MIT OR CC0-1.0)
1
Package created
22 Feb 2012
Version published
12 Sep 2023
Maintainers
3
Total deps
278
Direct deps
16
License
MIT

Issues

2

1 high severity issue

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

1 low severity issue

low
Recommendation: Read and validate the license terms
via: @jest/core@29.7.0 & 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
229 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.4
@babel/generator@7.24.4
@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.23.3
@babel/helper-plugin-utils@7.24.0
@babel/helper-simple-access@7.22.5
@babel/helper-split-export-declaration@7.22.6
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.22.20
@babel/helper-validator-option@7.23.5
@babel/helpers@7.24.4
@babel/highlight@7.24.2
@babel/parser@7.24.4
@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-jsx@7.24.1
@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/plugin-syntax-typescript@7.24.1
@babel/template@7.24.0
@babel/traverse@7.24.1
@babel/types@7.24.0
@bcoe/v8-coverage@0.2.3
@istanbuljs/schema@0.1.3
@jest/console@29.7.0
@jest/core@29.7.0
@jest/environment@29.7.0
@jest/expect-utils@29.7.0
@jest/expect@29.7.0
@jest/fake-timers@29.7.0
@jest/globals@29.7.0
@jest/reporters@29.7.0
@jest/schemas@29.6.3
@jest/source-map@29.6.3
@jest/test-result@29.7.0
@jest/test-sequencer@29.7.0

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
28 Packages, Including:
@istanbuljs/load-nyc-config@1.1.0
anymatch@3.1.3
cliui@8.0.1
electron-to-chromium@1.4.736
fs.realpath@1.0.0
get-caller-file@2.0.5
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
lru-cache@5.1.1
lru-cache@6.0.0
minimatch@3.1.2
once@1.4.0
picocolors@1.0.0
semver@6.3.1
semver@7.6.0
signal-exit@3.0.7
test-exclude@6.0.0
v8-to-istanbul@9.2.0
which@2.0.2
wrappy@1.0.2
write-file-atomic@4.0.2
y18n@5.0.8
yallist@3.1.1
yallist@4.0.0
yargs-parser@21.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
13 Packages, Including:
@sinonjs/commons@3.0.1
@sinonjs/fake-timers@10.3.0
babel-plugin-istanbul@6.1.1
istanbul-lib-coverage@3.2.2
istanbul-lib-instrument@5.2.1
istanbul-lib-instrument@6.0.2
istanbul-lib-report@3.0.1
istanbul-lib-source-maps@4.0.1
istanbul-reports@3.1.7
makeerror@1.0.12
source-map@0.6.1
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
5 Packages, Including:
@ampproject/remapping@2.3.0
bser@2.1.1
fb-watchman@2.0.2
human-signals@2.1.0
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.30001609

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

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.21.3
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

16
All Dependencies CSV
β“˜ This is a list of jest 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@babel/core7.24.4763.3 kBMIT
prod peer
1
1
@jest/core29.7.030.03 kBMIT
prod
1
1
@jest/transform29.7.012.12 kBMIT
prod
1
1
@jest/types29.6.38 kBMIT
prod
@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
exit0.1.214.94 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
import-local3.1.02.34 kBMIT
prod
jest-cli29.7.09.85 kBMIT
prod
1
1
jest-config29.7.025.91 kBMIT
prod
1
1
jest-util29.7.010.86 kBMIT
prod
prompts2.4.231.91 kBMIT
prod
slash3.0.01.8 kBMIT
prod

Visualizations

Frequently Asked Questions

What does jest do?

Jest is a delightful JavaScript Testing solution. As a developer-ready package, it provides a complete and easy to set-up JavaScript testing solution that works out of the box for any React project. Awesome features of Jest include instant feedback where failed tests run first. Its fast interactive mode can switch between running all tests or only test files related to changed files. More so, Jest has a snapshot testing feature that can capture snapshots of React trees or other serializable values to simplify UI testing.

How do you use jest?

Using Jest is straightforward. After installing it in your project, you can use it to create tests in a separate test file or even inline using jest.fn() and expect statements. Here is a simple example:

const sum = require('./sum');

test('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3);
});

In this example, we only have one test that imports a function from a module and checks if it performs the expected operation. If you have the setup to use Babel, you can even use ES6 imports.

To run your tests, you'll use the Jest command line interface, usually through npm scripts, like so:

"scripts": {
  "test": "jest"
},

Then in the terminal, you can just run npm test and Jest will run your tests. Jest will automatically find test files that end with .spec.js (or .test.js) in the entire project.

Where are the jest docs?

For comprehensive details about Jest and its usage, the documentation is provided on the Jest official website. You can access it at https://jestjs.io/. The docs provide a thorough guide on getting started with Jest, API references, configurational guides and much more. The snapshot testing feature of Jest can be found here.