Describe the bug
ReferenceError: afterAll is not defined
at Object.<anonymous> (/Users/himanshu/Desktop/headout/aer/node_modules/jest-specific-snapshot/dist/index.js:28:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/himanshu/Desktop/headout/aer/node_modules/@storybook/addon-storyshots/dist/test-bodies.js:9:1)
To Reproduce
Boilerplate of code.
https://github.com/himanshu-dixit/storybook-mock-setup
Expected behavior
Should run the test
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
System:
Please paste the results of npx -p @storybook/cli@next sb info here.
Additional context
Add any other context about the problem here.
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
This is still happening:
ReferenceError: afterAll is not defined
1 | import registerRequireContextHook from 'babel-plugin-require-context-hook/register';
> 2 | import initStoryshots from '@storybook/addon-storyshots';
| ^
3 |
4 | registerRequireContextHook();
5 | initStoryshots();
at Object.<anonymous> (node_modules/jest-specific-snapshot/dist/index.js:28:1)
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/test-bodies.js:9:1)
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/api/ensureOptionsDefaults.js:10:19)
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/api/index.js:12:53)
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/index.js:52:35)
at Object.<anonymous> (storybook/test/jest.setup.js:2:47)
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!
I am experiencing this. Anyone have any ideas?
Is there any idea as to why this might be happening as it is blocking my progress with chromatic!
Today, I suddenly got the same error when trying to start storybook. Deleting node_modules/.cache/storybook solved the issue for me. I'm still seeing the error message, but apart from this, everything seems to be working.
Most helpful comment
This is still happening: