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 27, 2024 via pnpm
Package summary
Share
1
issue
1
low severity
license
1
5
licenses
92
MIT
8
BSD-2-Clause
2
BSD-3-Clause
2
other licenses
ISC
1
CC0-1.0
1
Package created
6 Dec 2015
Version published
20 Dec 2019
Maintainers
3
Total deps
104
Direct deps
22
License
MIT

Issues

1

1 low severity issue

low
Recommendation: Read and validate the license terms
via: rst-selector-parser@2.2.3
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
92 Packages, Including:
array-buffer-byte-length@1.0.1
array.prototype.filter@1.0.4
array.prototype.flat@1.3.2
arraybuffer.prototype.slice@1.0.3
available-typed-arrays@1.0.7
call-bind@1.0.7
cheerio@1.0.0-rc.12
commander@2.20.3
data-view-buffer@1.0.1
data-view-byte-length@1.0.1
data-view-byte-offset@1.0.0
define-data-property@1.1.4
define-properties@1.2.1
discontinuous-range@1.0.0
dom-serializer@2.0.0
enzyme-shallow-equal@1.0.7
enzyme@3.11.0
es-abstract@1.23.3
es-array-method-boxes-properly@1.0.0
es-define-property@1.0.0
es-errors@1.3.0
es-object-atoms@1.0.0
es-set-tostringtag@2.0.3
es-shim-unscopables@1.0.2
es-to-primitive@1.2.1
for-each@0.3.3
function-bind@1.1.2
function.prototype.name@1.1.6
functions-have-names@1.2.3
get-intrinsic@1.2.4
get-symbol-description@1.0.2
globalthis@1.0.3
gopd@1.0.1
has-bigints@1.0.2
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
has-tostringtag@1.0.2
has@1.0.4
hasown@2.0.2
html-element-map@1.3.1
htmlparser2@8.0.2
internal-slot@1.0.7
is-array-buffer@3.0.4
is-bigint@1.0.4
is-boolean-object@1.1.2
is-callable@1.2.7
is-data-view@1.0.1
is-date-object@1.0.5
is-negative-zero@2.0.3

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
8 Packages, Including:
cheerio-select@2.1.0
css-select@5.1.0
css-what@6.1.0
domelementtype@2.3.0
domhandler@5.0.3
domutils@3.1.0
entities@4.5.0
nth-check@2.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
2 Packages, Including:
moo@0.5.2
rst-selector-parser@2.2.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
1 Packages, Including:
boolbase@1.0.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
railroad-diagrams@1.0.0
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

22
All Dependencies CSV
β“˜ This is a list of enzyme 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
array.prototype.flat1.3.26.64 kBMIT
prod
cheerio1.0.0-rc.1275.06 kBMIT
prod
enzyme-shallow-equal1.0.711.2 kBMIT
prod
function.prototype.name1.1.68.67 kBMIT
prod
has1.0.41.59 kBMIT
prod
html-element-map1.3.18.83 kBMIT
prod
is-boolean-object1.1.27.67 kBMIT
prod
is-callable1.2.79.66 kBMIT
prod
is-number-object1.0.77.7 kBMIT
prod
is-regex1.1.410.31 kBMIT
prod
is-string1.0.76.92 kBMIT
prod
is-subset0.1.13.45 kBMIT
prod
lodash.escape4.0.13.79 kBMIT
prod
lodash.isequal4.5.012.02 kBMIT
prod
object-inspect1.13.125.91 kBMIT
prod
object-is1.1.626.39 kBMIT
prod
object.assign4.1.518.68 kBMIT
prod
object.entries1.1.831.8 kBMIT
prod
object.values1.2.030.78 kBMIT
prod
raf3.4.13.63 kBMIT
prod
rst-selector-parser2.2.365 kBBSD-3-Clause
prod
1
string.prototype.trim1.2.932.74 kBMIT
prod

Visualizations

Frequently Asked Questions

What does enzyme do?

Enzyme is a JavaScript testing utility for React that simplifies the testing of React components' output displays and behaviors. It allows developers to manipulate, traverse, and in some ways simulate runtime interactions with their component's output.

How do you use enzyme?

Using Enzyme involves a straightforward and intuitive process, in a manner similar to that of working with jQuery's API for DOM manipulation and traversal. Prior to using Enzyme, you need to install it via npm alongside an Adapter corresponding to your version of React, by running a command such as npm i --save-dev enzyme enzyme-adapter-react-16 for React 16.

After installation, import Enzyme and your chosen Adapter into your test files, then configure Enzyme to use the adapter as follows:

import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new Adapter() });

To write tests using Enzyme's shallow rendering API for instance, the following code example demonstrates how to test various aspects of your React component:

import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';

import MyComponent from './MyComponent';

describe('<MyComponent />', () => {
  const wrapper = shallow(<MyComponent />);

  it('renders three <Foo /> components', () => {
    expect(wrapper.find(Foo)).to.have.lengthOf(3);
  });
  //...more tests
})

Where are the enzyme docs?

Enzyme's documentation and additional guidelines can be found inside its GitHub repository at the URL 'https://github.com/airbnb/enzyme'. The documentation covers a wide range of topics, explaining the basic usage of Enzyme, its APIs, setup guides with different testing frameworks, React Hooks support, and more. Detailed API documentation can be found in '/docs/api/', and general guides can be found in '/docs/guides/'. The updated documentation is designed to provide comprehensive information and knowledge that a developer would typically need to use Enzyme effectively.