How to use the jest-emotion.getStyles function in jest-emotion

To help you get started, we’ve selected a few jest-emotion 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 mineral-ui / mineral-ui / utils / testCssProps.js View on Github external
it('css', () => {
      const props = { css: { color: 'rebeccapurple' } };
      shallow();
      const styles = getStyles(emotion);

      expect(styles).toContain(props.css.color);
    });

jest-emotion

Jest utilities for emotion

MIT
Latest version published 4 years ago

Package Health Score

78 / 100
Full package analysis