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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: Make spies reactive so that they can be logged by addon-actions #26740
Test: Make spies reactive so that they can be logged by addon-actions #26740
Changes from 5 commits
6ea5bd8
d2ad4a0
7b5f532
afdfd03
0dc9e58
726a80a
412b525
f3d1452
a784747
bf1fe10
e98dfb8
176dbee
f9cb419
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please check use case for spying on methods without redefining them #28419
It was working in Storybook 7, but not in Storybook 8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @kasperpeulen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We added a fix for this 8.2, could you check that @dmy-leanix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kasperpeulen Currently can't check in my repo as in 8.2 some paths were changed and during running storybook I have:
Looks like related to this: 3a1e61c
Most probably nx or angular has own usages and this change wasn't backward compatible to it. And I can't update nx and angular right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmy-leanix I'd need a repro to investigate.
I suspect you may have multiple versions of the
storybook
package.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kasperpeulen "No dependencies found matching storybook", do I need
storybook
additionally to@storybook/*
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kasperpeulen yes, after adding
storybook
dependency it works fine, didn't know that this dependency should also be addThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storybook for angular (as well as a lot of other packages) has a peerDependency on
storybook
starting8.2
.storybook/code/frameworks/angular/package.json
Line 92 in 3b04c5b
The
storybook
package has been a required devDependency since7.0
.It should have been added by this auto-migration:
storybook/code/lib/cli/src/automigrate/fixes/sb-binary.ts
Lines 23 to 107 in e35b884
...when you upgraded from 6.x to 7.x.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen thank you! yes, strange I didn't get error related to this before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen This automigration didn't run for Nx users. @yannbf fixed that here:
#28601