Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-select-event

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-event - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

4

lib/react-select-event.cjs.js

@@ -57,7 +57,7 @@ 'use strict';

for (const option of options) {
openMenu(input); // only consider accessible elements
openMenu(input); // only consider visible, interactive elements
const optionElement = await dom.findByText(container, option, {
// @ts-ignore invalid rtl types :'(
ignore: ":not([tabindex])"
ignore: "[aria-live] *,[style*='visibility: hidden']"
});

@@ -64,0 +64,0 @@ dom.fireEvent.click(optionElement);

@@ -53,7 +53,7 @@ import { fireEvent, findByText, wait } from '@testing-library/dom';

for (const option of options) {
openMenu(input); // only consider accessible elements
openMenu(input); // only consider visible, interactive elements
const optionElement = await findByText(container, option, {
// @ts-ignore invalid rtl types :'(
ignore: ":not([tabindex])"
ignore: "[aria-live] *,[style*='visibility: hidden']"
});

@@ -60,0 +60,0 @@ fireEvent.click(optionElement);

{
"name": "react-select-event",
"version": "4.1.2",
"version": "4.1.3",
"description": "Simulate react-select events for react-testing-library",

@@ -48,8 +48,8 @@ "main": "lib/react-select-event.cjs.js",

"@babel/preset-typescript": "^7.3.3",
"@testing-library/jest-dom": "^4.0.0",
"@testing-library/jest-dom": "^5.0.1",
"@testing-library/react": "^9.1.3",
"@types/jest": "^24.0.13",
"@types/jest": "^25.1.0",
"@types/react": "^16.8.19",
"@types/react-select": "^3.0.8",
"jest": "^24.8.0",
"jest": "^25.1.0",
"prettier": "^1.17.1",

@@ -56,0 +56,0 @@ "react": "^16.9.0",

@@ -67,6 +67,6 @@ /** Simulate user events on react-select dropdowns */

// only consider accessible elements
// only consider visible, interactive elements
const optionElement = await findByText(container, option, {
// @ts-ignore invalid rtl types :'(
ignore: ":not([tabindex])"
ignore: "[aria-live] *,[style*='visibility: hidden']"
});

@@ -73,0 +73,0 @@ fireEvent.click(optionElement);

Sorry, the diff of this file is not supported yet

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