Socket
Socket
Sign inDemoInstall

@storybook/testing-library

Package Overview
Dependencies
Maintainers
28
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/testing-library - npm Package Compare versions

Comparing version 0.0.0-alpha.1 to 0.0.0-alpha.2

16

index.js

@@ -9,3 +9,17 @@ import { once } from '@storybook/client-logger';

{ ...domTestingLibrary },
{ intercept: (method, path) => path[0] === 'fireEvent' || method.startsWith('findBy') }
{
intercept: (method, path) => path[0] === 'fireEvent' || method.startsWith('findBy'),
getArgs: (call, state) => {
if (!state.isDebugging) return call.args;
if (call.method.startsWith('findBy')) {
const [value, queryOptions, waitForOptions] = call.args;
return [value, queryOptions, { ...waitForOptions, timeout: 60000, interval: Infinity }];
}
if (call.method.startsWith('waitFor')) {
const [callback, options] = call.args;
return [callback, { ...options, timeout: 60000, interval: Infinity }];
}
return call.args;
}
}
);

@@ -12,0 +26,0 @@

2

package.json
{
"name": "@storybook/testing-library",
"version": "0.0.0-alpha.1",
"version": "0.0.0-alpha.2",
"description": "Instrumented version of Testing Library for Storybook Interactions",

@@ -5,0 +5,0 @@ "repository": {

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