storybook: Storyshots does not render JSX in addDecorator
Describe the bug
addDecorator from storybook/react does not appear to be called in storyshots, even though itโs called in Storybook itself.
[EDIT] This appears to be the case only in .jsx and .tsx files.
To Reproduce Minimal repro can be found at this repository: https://github.com/LeapYear/storybook-storyshots-repro
Expected behavior
addDecorator should be called with storyshots
Possibly related issues https://github.com/storybookjs/storybook/issues/3246
- Appears superficially related, however, the migration instructions from 5.2 -> 5.3 instruct to move all
requirecalls fromconfig.jstomain.js, leavingaddDecoratorin place. However, the documentation for@storybook/reactstill recommends usingconfigure(require.context(..), ..). Is the documentation inconsistent?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (9 by maintainers)
@david-golightly-leapyear would you happen to have some time to fix this issue?
@shilman has pointed out the correct place for the fix.
๐