Socket
Socket
Sign inDemoInstall

@testing-library/cypress

Package Overview
Dependencies
201
Maintainers
10
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.2.0

6

dist/index.js

@@ -8,2 +8,8 @@ "use strict";

});
Object.defineProperty(exports, "configure", {
enumerable: true,
get: function () {
return _dom.configure;
}
});
exports.commands = void 0;

@@ -10,0 +16,0 @@

2

package.json
{
"name": "@testing-library/cypress",
"version": "4.1.1",
"version": "4.2.0",
"description": "Simple and complete custom Cypress commands and utilities that encourage good testing practices.",

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

<div align="center">
<h1>cypress-testing-library</h1>
<h1>Cypress Testing Library</h1>

@@ -28,3 +28,3 @@ <a href="https://www.emojione.com/emoji/1f405">

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

@@ -48,3 +48,3 @@

You want to use [`dom-testing-library`][dom-testing-library] methods in your
You want to use [`DOM Testing Library`][dom-testing-library] methods in your
[Cypress][cypress] tests.

@@ -55,3 +55,3 @@

This allows you to use all the useful
[`dom-testing-library`][dom-testing-library] methods in your tests.
[`DOM Testing Library`][dom-testing-library] methods in your tests.

@@ -97,3 +97,3 @@ ## Table of Contents

`cypress-testing-library` extends Cypress' `cy` command.
`Cypress Testing Library` extends Cypress' `cy` command.

@@ -103,8 +103,8 @@ Add this line to your project's `cypress/support/commands.js`:

```
import '@testing-library/cypress/add-commands';
import '@testing-library/cypress/add-commands'
```
You can now use all of `dom-testing-library`'s `getBy`, `getAllBy`, `queryBy`
You can now use all of `DOM Testing Library`'s `getBy`, `getAllBy`, `queryBy`
and `queryAllBy` commands.
[See the `dom-testing-library` docs for reference](https://testing-library.com)
[See the `DOM Testing Library` docs for reference](https://testing-library.com)

@@ -129,7 +129,7 @@ You can find [all Library definitions here](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__cypress/index.d.ts).

`cypress-testing-library` supports both jQuery elements and DOM nodes. This is
necessary because Cypress uses jQuery elements, while `dom-testing-library`
`Cypress Testing Library` supports both jQuery elements and DOM nodes. This is
necessary because Cypress uses jQuery elements, while `DOM Testing Library`
expects DOM nodes. When you pass a jQuery element as `container`, it will get
the first DOM node from the collection and use that as the `container` parameter
for the `dom-testing-library` functions.
for the `DOM Testing Library` functions.

@@ -173,4 +173,7 @@ ## Other Solutions

<td align="center"><a href="https://simjes.dev/"><img src="https://avatars0.githubusercontent.com/u/6494049?v=4" width="100px;" alt="Simon Jespersen"/><br /><sub><b>Simon Jespersen</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/commits?author=simjes" title="Code">💻</a> <a href="#review-simjes" title="Reviewed Pull Requests">👀</a></td>
<td align="center"><a href="https://afontcu.dev"><img src="https://avatars0.githubusercontent.com/u/9197791?v=4" width="100px;" alt="Adrià Fontcuberta"/><br /><sub><b>Adrià Fontcuberta</b></sub></a><br /><a href="#infra-afontcu" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="https://afontcu.dev"><img src="https://avatars0.githubusercontent.com/u/9197791?v=4" width="100px;" alt="Adrià Fontcuberta"/><br /><sub><b>Adrià Fontcuberta</b></sub></a><br /><a href="#infra-afontcu" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/testing-library/cypress-testing-library/commits?author=afontcu" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/Megoos"><img src="https://avatars2.githubusercontent.com/u/9866017?v=4" width="100px;" alt="Mikhail Guskov"/><br /><sub><b>Mikhail Guskov</b></sub></a><br /><a href="https://github.com/testing-library/cypress-testing-library/issues?q=author%3AMegoos" title="Bug reports">🐛</a></td>
</tr>
</table>

@@ -225,4 +228,4 @@

[emojis]: https://github.com/kentcdodds/all-contributors#emoji-key
[all-contributors]: https://github.com/kentcdodds/all-contributors
[all-contributors]: https://github.com/all-contributors/all-contributors
[dom-testing-library]: https://github.com/testing-library/dom-testing-library
[cypress]: https://www.cypress.io/
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc