MCPcopy Index your code
hub / github.com/enzymejs/enzyme-matchers

github.com/enzymejs/enzyme-matchers @v7.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v7.1.2 ↗ · + Follow
159 symbols 276 edges 116 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

enzyme-matchers

License Travis CI Maintenance Status

Overview

This is an assertion library for enzyme to simplify your tests, and make them more readable.

This library supports several testing frameworks including Jest and Jasmine.

Want to add support for another testing framework? Check out our contributing doc!

Readme's for each package:

Development

Setup

$ git clone <this repo>
$ cd enzyme-matchers
$ npm install
$ lerna bootstrap

Tests

Linters:

$ npm run lint

Tests:

$ npm test

Contributing

We want to make this assertion library as robust and complete as possible. If you think that there are missing features/assertions, please open a GitHub issue or even better - a PR.

This project uses lerna

Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

 _________________
< The MIT License >
 -----------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Maintenance Status

Active: Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.

Extension points exported contracts — how you extend this code

ToMatchElementOptions (Interface)
(no doc)
packages/jest-enzyme/src/index.d.ts
Matchers (Interface)
(no doc)
packages/jest-enzyme/src/index.d.ts

Core symbols most depended-on inside this repo

single
called by 19
packages/enzyme-matchers/src/utils/single.js
toHaveStyle
called by 15
packages/enzyme-matchers/src/assertions/toHaveStyle.js
toHaveState
called by 15
packages/enzyme-matchers/src/assertions/toHaveState.js
toHaveProp
called by 12
packages/enzyme-matchers/src/assertions/toHaveProp.js
stringify
called by 12
packages/enzyme-matchers/src/utils/stringify.js
toContainMatchingElements
called by 10
packages/enzyme-matchers/src/assertions/toContainMatchingElements.js
toContainExactlyOneMatchingElement
called by 7
packages/enzyme-matchers/src/assertions/toContainExactlyOneMatchingElement.js
toContainMatchingElement
called by 7
packages/enzyme-matchers/src/assertions/toContainMatchingElement.js

Shape

Function 109
Method 32
Class 16
Interface 2

Languages

TypeScript100%

Modules by API surface

packages/jest-enzyme/src/index.d.ts23 symbols
packages/jasmine-enzyme/src/index.js5 symbols
packages/jasmine-enzyme/spec/fixtures/toHaveState.fixture.js5 symbols
packages/enzyme-matchers/src/assertions/__tests__/toHaveState.test.js5 symbols
packages/jest-enzyme/src/__tests__/asymmetric-matchers.test.js4 symbols
packages/jest-enzyme/src/__failing_tests__/toHaveState.test.js4 symbols
packages/jasmine-enzyme/spec/ensure-matchers-are-added--spec.js4 symbols
packages/enzyme-matchers/src/assertions/__tests__/toHaveProp.test.js4 symbols
packages/jest-enzyme/src/__failing_tests__/toHaveRef.test.js3 symbols
packages/jest-environment-enzyme/src/index.js3 symbols
packages/enzyme-matchers/src/utils/stringify.js3 symbols
packages/enzyme-matchers/src/utils/protectAssertion.js3 symbols

For agents

$ claude mcp add enzyme-matchers \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact