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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@david-golightly-leapyear would you happen to have some time to fix this issue?

@shilman has pointed out the correct place for the fix.

๐Ÿ™‡