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 Jun 23, 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
19
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
162
Direct deps
20
License
MIT

Issues

2

1 high severity issue

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

1 low severity issue

low
Recommendation: Read and validate the license terms
via: @babel/core@7.24.7 & 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.7
@babel/compat-data@7.24.7
@babel/core@7.24.7
@babel/generator@7.24.7
@babel/helper-compilation-targets@7.24.7
@babel/helper-environment-visitor@7.24.7
@babel/helper-function-name@7.24.7
@babel/helper-hoist-variables@7.24.7
@babel/helper-module-imports@7.24.7
@babel/helper-module-transforms@7.24.7
@babel/helper-plugin-utils@7.24.7
@babel/helper-simple-access@7.24.7
@babel/helper-split-export-declaration@7.24.7
@babel/helper-string-parser@7.24.7
@babel/helper-validator-identifier@7.24.7
@babel/helper-validator-option@7.24.7
@babel/helpers@7.24.7
@babel/highlight@7.24.7
@babel/parser@7.24.7
@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.7
@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.7
@babel/template@7.24.7
@babel/traverse@7.24.7
@babel/types@7.24.7
@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
19 Packages, Including:
@istanbuljs/load-nyc-config@1.1.0
anymatch@3.1.3
electron-to-chromium@1.4.810
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
semver@7.6.2
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.30001636

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.7766.74 kBMIT
prod peer
1
1
@babel/generator7.24.7481.83 kBMIT
prod
@babel/plugin-syntax-jsx7.24.768.39 kBMIT
prod
1
1
@babel/plugin-syntax-typescript7.24.771.06 kBMIT
prod
1
1
@babel/types7.24.72.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.293.19 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.