@storybook/testing-library
Advanced tools
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 @@ |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4671
112