How to use the @storybook/react.clearDecorators function in @storybook/react

To help you get started, we’ve selected a few @storybook/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flow-typed / flow-typed / definitions / npm / @storybook / react_v5.x.x / flow_v0.104.x- / test_react_v5.x.x.js View on Github external
it('should error on invalid usage (global)', () => {
    // $ExpectError
    clearDecorators(true);
    // $ExpectError
    clearDecorators(parameters);
  });
});
github flow-typed / flow-typed / definitions / npm / @storybook / react_v5.x.x / flow_v0.104.x- / test_react_v5.x.x.js View on Github external
it('should error on invalid usage (global)', () => {
    // $ExpectError
    clearDecorators(true);
    // $ExpectError
    clearDecorators(parameters);
  });
});
github flow-typed / flow-typed / definitions / npm / @storybook / react_v4.x.x / flow_v0.104.x- / test_react_v4.x.x.js View on Github external
it('should error on invalid usage (global)', () => {
    // $ExpectError
    clearDecorators(true);
    // $ExpectError
    clearDecorators(parameters);
  });
});
github flow-typed / flow-typed / definitions / npm / @storybook / react_v4.x.x / flow_v0.104.x- / test_react_v4.x.x.js View on Github external
it('should error on invalid usage (global)', () => {
    // $ExpectError
    clearDecorators(true);
    // $ExpectError
    clearDecorators(parameters);
  });
});