This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Version 1.0.0 #60
Merged
Version 1.0.0 #60
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add support for stories using object notation
feat: support CSF3 format
Feature/run play function typed
yannbf
added
release
Create a release when this pr is merged
major
Increment the major version when merged
labels
Nov 18, 2021
This was referenced Nov 23, 2021
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: N/A
What Changed
Checklist
Check the ones applicable to your change:
Change Type
Indicate the type of change your pull request is:
documentation
patch
minor
major
Release Notes
Breaking changes
Updates Storybook peer dependency to 6.4
Features
CSF3
Storybook 6.4 released a new version of CSF, where the story can also be an object. This is supported in
@storybook/testing-react
, but you have to match the requisites:1 - Either your story has a
render
method or your meta contains acomponent
property:Play function
Storybook 6.4 also brings a new function called
play
, where you can write automated interactions to the story.In
@storybook/testing-react
, theplay
function does not run automatically for you, but rather comes in the returned component, and you can execute it as you please.Consider the following example:
You can use the play function like this: