You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After storybook upgrade from 5.1.1 to 5.2.1, the specs function (or it function) is either not executed or failing silently somewhere, because the assignments that happen within the it block are not happening.
Example:
// storiesOf() above here
.add('after changing state',
() => {
configure({ adapter: new Adapter() });
const story = <MyComponent {...someProps} />;
let output;
specs(() => describe('Classification', function () {
it('Component state change', function () {
output = mount(story);
output.setProps({ someProps });
output.setState({ someState: stateData });
});
}));
const Inst = () => output.instance();
return <Inst {...someProps} />;
}
);
When viewing this in storybook UI, I see TypeError: Cannot read property 'instance' of undefined.
Do I need to change how I invoke the specifications addon for this version of storybook, or is this a breaking change on storybook's side?
I'm happy to contribute a bugfix if someone can point me to where the specification addon interfaces with storybook for specs/it loading.
The text was updated successfully, but these errors were encountered:
Hello,
After storybook upgrade from 5.1.1 to 5.2.1, the
specs
function (orit
function) is either not executed or failing silently somewhere, because the assignments that happen within theit
block are not happening.Example:
When viewing this in storybook UI, I see
TypeError: Cannot read property 'instance' of undefined
.Do I need to change how I invoke the specifications addon for this version of storybook, or is this a breaking change on storybook's side?
I'm happy to contribute a bugfix if someone can point me to where the specification addon interfaces with storybook for specs/it loading.
The text was updated successfully, but these errors were encountered: