-
Notifications
You must be signed in to change notification settings - Fork 54
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
Error Message Cannot read property 'wrongResults' of undefined in console when trying to access a story. #87
Comments
Has the same issue with
|
+1 |
I encountered the same issue when I add tests to the story with jest, and skipping import { ... } from './.storybook/facade'
storiesOf('TimerDisplay', module)
.add('story 1', () => {
// this works fine
specs(() => describe('story 1', () => {
it('story 1', () => { ... })
})
})
.add('story 2', () => {
// this throws 'Cannot read property 'wrongResults' of undefined'
specs(() => it('story 2', () => { ... })
}) I want to skip the So in such case, the story and the test are 1-1 map and does not need to have an extra grouping by wrapping it in |
getting the same thing... |
I was running into this error because I wasn't returning // causes "Cannot read property 'wrongResults' of undefined" error
specs(() => {
describe('some test', () => {})
}) // works!
specs(() =>
describe('some test', () => {})
) |
Issue details
There is an error message when I open Storybook and I try to access one of my Stories.
Steps To Reproduce:
My tests are in a separate file from the stories. I used the instructions from the README.md
This default story hasn't tests written yet. For some reason the specs addon runs all the tests and shows the results in all the stories.
http://localhost:6006/?selectedKind=Styleguide&selectedStory=Fonts&full=0&down=1&left=1&panelRight=0&downPanel=storybooks%2Fstorybook-addon-knobs
I reload the page (F5)
I click on a different story from the left hand side panel (this time, this is the one that my tests use) .
RESULT:
White Screen comes up, yarn log does not display the error message. The error is displayed in the browsers console. And Story book does not longer shows any data at all.
This is the URL of my story:
http://localhost:6006/?selectedKind=Button&selectedStory=Default&full=0&down=1&left=1&panelRight=0&downPanel=storybook-addon-specifications%2Fspecifications-panel
VERSIONS
storybook/react 3.2.17
storybook/addon-actions: ^3.2.17
storybook/addon-info: ^3.2.13
storybook/addon-knobs: ^3.2.17
storybook/addon-links: ^3.2.13
storybook/addons: ^3.2.17
react 16.1.1
enzyme": "^3.2.0
enzyme-adapter-react-16": "^1.1.0
The text was updated successfully, but these errors were encountered: