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 28, 2024 via pnpm

jest-snapshot 29.7.0

Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
6
licenses
131
MIT
21
ISC
6
BSD-3-Clause
6
other licenses
Apache-2.0
4
CC-BY-4.0
1
BSD-2-Clause
1
Package created
28 Apr 2016
Version published
12 Sep 2023
Maintainers
3
Total deps
164
Direct deps
20
License
MIT

Issues

2

1 high severity issue

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

1 low severity issue

low
Recommendation: Read and validate the license terms
via: @babel/core@7.24.4 & 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
131 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
@istanbuljs/schema@0.1.3
@jest/expect-utils@29.7.0
@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/graceful-fs@4.1.9
@types/istanbul-lib-coverage@2.0.6
@types/istanbul-lib-report@3.0.3

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
21 Packages, Including:
@istanbuljs/load-nyc-config@1.1.0
anymatch@3.1.3
electron-to-chromium@1.4.750
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
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
wrappy@1.0.2
write-file-atomic@4.0.2
yallist@3.1.1
yallist@4.0.0

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.30001614

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

20
All Dependencies CSV
ⓘ This is a list of jest-snapshot '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
@babel/generator7.24.4481.33 kBMIT
prod
@babel/plugin-syntax-jsx7.24.14.04 kBMIT
prod
1
1
@babel/plugin-syntax-typescript7.24.16.71 kBMIT
prod
1
1
@babel/types7.24.02.3 MBMIT
prod
@jest/expect-utils29.7.07.94 kBMIT
prod
@jest/transform29.7.012.12 kBMIT
prod
1
1
@jest/types29.6.38 kBMIT
prod
babel-preset-current-node-syntax1.0.12.52 kBMIT
prod
1
1
chalk4.1.211.31 kBMIT
prod
expect29.7.022.38 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
jest-diff29.7.018.62 kBMIT
prod
jest-get-type29.6.31.72 kBMIT
prod
jest-matcher-utils29.7.07.73 kBMIT
prod
jest-message-util29.7.06.84 kBMIT
prod
jest-util29.7.010.86 kBMIT
prod
natural-compare1.4.02.45 kBMIT
prod
pretty-format29.7.014.34 kBMIT
prod
semver7.6.026.57 kBISC
prod

Visualizations

Frequently Asked Questions

What does jest-snapshot do?

Jest-snapshot is an efficient testing package that forms an important module of the Jest framework. It enables developers to capture snapshots of test values and compare them with the current state of the system in order to detect any unexpected changes that may have been introduced. This approach primarily aids in spot-checking large objects and providing record-replay features for JavaScript testing.

How do you use jest-snapshot?

To effectively use Jest-snapshot, you’ll need to have the Jest testing framework installed in your system. While creating tests, you can use the toMatchSnapshot() or toThrowErrorMatchingSnapshot() methods from Jest to create or update snapshots. Jest-snapshot becomes involved whenever these snapshot methods are used. Here's a quick example:

import renderer from 'react-test-renderer';
import Link from '../Link.react';

it('renders correctly', () => {
    const tree = renderer
    .create(<Link page="http://www.facebook.com">Facebook</Link>)
    .toJSON();
    expect(tree).toMatchSnapshot();
});

In this example, a snapshot of the rendered <Link /> component is taken and saved. When the test runs, Jest compares the rendered output with the previously saved snapshot. If they match, the test passes; otherwise, the test fails.

Where are the jest-snapshot docs?

For in-depth information about Jest-snapshot, you can refer to Jest's official documentation. This comprehensive guide covers every detail about snapshot testing with Jest, providing valuable insights on how to best use Jest-snapshot in your testing workflow. The guide includes topics like updating snapshots, property matchers, and inline snapshots.