Socket
Socket
Sign inDemoInstall

@testing-library/jest-dom

Package Overview
Dependencies
Maintainers
10
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/jest-dom - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

dist/utils.js

@@ -129,4 +129,6 @@ "use strict";

multiple,
selectedOptions
options
}) {
const selectedOptions = [...options].filter(option => option.selected);
if (multiple) {

@@ -133,0 +135,0 @@ return [...selectedOptions].map(opt => opt.value);

{
"name": "@testing-library/jest-dom",
"version": "4.0.0",
"version": "4.0.1",
"description": "Custom jest matchers to test the state of the DOM",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -24,3 +24,3 @@ <div align="center">

[![All Contributors](https://img.shields.io/badge/all_contributors-26-orange.svg?style=flat-square)](#contributors)
[![All Contributors](https://img.shields.io/badge/all_contributors-27-orange.svg?style=flat-square)](#contributors-)
[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]

@@ -119,4 +119,4 @@

`document.querySelector` and
[dom-testing-library](https://github.com/kentcdodds/dom-testing-library) for
querying DOM elements.
[DOM Testing Library](https://github.com/testing-library/dom-testing-library)
for querying DOM elements.

@@ -156,3 +156,3 @@ ### `toBeDisabled`

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -202,3 +202,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -241,3 +241,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -294,3 +294,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -358,3 +358,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -407,3 +407,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -470,3 +470,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -513,3 +513,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -553,3 +553,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -602,3 +602,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -653,3 +653,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -696,3 +696,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -828,3 +828,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -884,3 +884,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -939,3 +939,3 @@ ```javascript

##### Using dom-testing-library
##### Using DOM Testing Library

@@ -992,4 +992,4 @@ ```javascript

This whole library was extracted out of Kent C. Dodds' [dom-testing-library][],
which was in turn extracted out of [react-testing-library][].
This whole library was extracted out of Kent C. Dodds' [DOM Testing Library][],
which was in turn extracted out of [React Testing Library][].

@@ -1010,6 +1010,4 @@ The intention is to make this available to be used independently of these other

This library follows the same guiding principles as its mother library
[dom-testing-library][]. Go
[check them out](https://github.com/kentcdodds/dom-testing-library#guiding-principles)
for more details.
This library follows the same guiding principles as its mother library [DOM
Testing Library][]. Go [check them out][guiding-principle] for more details.

@@ -1028,3 +1026,4 @@ Additionally, with respect to custom DOM matchers, this library aims to maintain

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>

@@ -1064,5 +1063,9 @@ <tr>

<td align="center"><a href="https://github.com/lukaszfiszer"><img src="https://avatars3.githubusercontent.com/u/1201711?v=4" width="100px;" alt="Łukasz Fiszer"/><br /><sub><b>Łukasz Fiszer</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=lukaszfiszer" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/jeanchung"><img src="https://avatars0.githubusercontent.com/u/10778036?v=4" width="100px;" alt="Jean Chung"/><br /><sub><b>Jean Chung</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=jeanchung" title="Code">💻</a> <a href="https://github.com/testing-library/jest-dom/commits?author=jeanchung" title="Tests">⚠️</a></td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

@@ -1078,4 +1081,5 @@

[jest]: https://facebook.github.io/jest/
[dom-testing-library]: https://github.com/kentcdodds/dom-testing-library
[react-testing-library]: https://github.com/kentcdodds/react-testing-library
[dom-testing-library]: https://github.com/testing-library/dom-testing-library
[react-testing-library]:
https://github.com/testing-library/react-testing-library
[npm]: https://www.npmjs.com/

@@ -1089,8 +1093,10 @@ [node]: https://nodejs.org

[coverage]: https://codecov.io/github/testing-library/jest-dom
[version-badge]: https://img.shields.io/npm/v/jest-dom.svg?style=flat-square
[package]: https://www.npmjs.com/package/jest-dom
[version-badge]:
https://img.shields.io/npm/v/@testing-library/jest-dom.svg?style=flat-square
[package]: https://www.npmjs.com/package/@testing-library/jest-dom
[downloads-badge]:
https://img.shields.io/npm/dm/@testing-library/jest-dom.svg?style=flat-square
[npmtrends]: http://www.npmtrends.com/jest-dom
[license-badge]: https://img.shields.io/npm/l/jest-dom.svg?style=flat-square
[npmtrends]: http://www.npmtrends.com/@testing-library/jest-dom
[license-badge]:
https://img.shields.io/npm/l/@testing-library/jest-dom.svg?style=flat-square
[license]: https://github.com/testing-library/jest-dom/blob/master/LICENSE

@@ -1100,4 +1106,2 @@ [prs-badge]:

[prs]: http://makeapullrequest.com
[donate-badge]:
https://img.shields.io/badge/$-support-green.svg?style=flat-square
[coc-badge]:

@@ -1117,4 +1121,4 @@ https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square

https://img.shields.io/twitter/url/https/github.com/testing-library/jest-dom.svg?style=social
[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key
[all-contributors]: https://github.com/kentcdodds/all-contributors
[guiding-principle]: https://twitter.com/kentcdodds/status/977018512689455106
[emojis]: https://allcontributors.org/docs/en/emoji-key
[all-contributors]: https://github.com/all-contributors/all-contributors
[guiding-principle]: https://testing-library.com/docs/guiding-principles
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc