storybook-state icon indicating copy to clipboard operation
storybook-state copied to clipboard

Bundled versions >=1.6.0 breaks tests in node environment

Open hexagon6 opened this issue 5 years ago • 1 comments

See comment: https://github.com/dump247/storybook-state/commit/1741d3eb87be1736377f008f6c368925587e149e#r34210654

Unfortunately this change (https://github.com/dump247/storybook-state/commit/1741d3eb87be1736377f008f6c368925587e149e) breaks some test setups that run on node, as import stays in the bundle, but is not yet officially supported by node (without flag). (e.g. running @storybook/addon-storyshots with jest uses node).

Is it possible to revert this change and release a new version on npm?

hexagon6 avatar Jul 07 '19 17:07 hexagon6

I've tested with 1.5.2 which works flawlessly, 1.6.1 does not.

hexagon6 avatar Jul 07 '19 17:07 hexagon6