testing-react icon indicating copy to clipboard operation
testing-react copied to clipboard

Testing utilities that allow you to reuse your Storybook stories in your React unit tests!

Results 26 testing-react issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Within a decorator, `StoryContext.title` is always an empty string. I have a global decorator function that selectively decorates stories based on their top-level group, as specified by...

linear

**Describe the bug** ```sh ../../node_modules/@storybook/testing-react/dist/types.d.ts:2:15 - error TS2305: Module '"@storybook/preview-web"' has no exported member 'WebProjectAnnotations'. 2 import type { WebProjectAnnotations } from '@storybook/preview-web'; ``` **To Reproduce** Use any @storybook version...

**Is your feature request related to a problem? Please describe.** I have utils/helpers that work with the results of the composeStory/composeStories functions. Currently, @storybook/testing-react doesn't Expose the types these functions...

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...

dependencies

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...

dependencies

**Describe the bug** Reading the documentation for global decorators here: https://storybook.js.org/addons/@storybook/react-testing It says to import storybook/preview.js Import is an es6 feature as is the component story format which is the...

needs reproduction

**Describe the bug** There seems to be some typing issues related to the `GlobalConfig` and Storybook's builtin types (https://github.com/storybookjs/testing-react/blob/main/src/types.ts#L14) I think the issue is in `decorators` specifically. Is there any...

linear

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...

dependencies

Hello, I have a question about using testing-react and passing stories with jest assertions to jest. In the examples, in the readme, the stories are used as they already include...

question

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies