jest-styled-components

  • Version 7.2.0
  • Published
  • 32.6 kB
  • 1 dependency
  • MIT license

Install

npm i jest-styled-components
yarn add jest-styled-components
pnpm add jest-styled-components

Overview

Jest utilities for Styled Components

Index

Variables

variable styleSheetSerializer

const styleSheetSerializer: any;

    Interfaces

    interface StyledComponentsSerializerOptions

    interface StyledComponentsSerializerOptions {}

      property addStyles

      addStyles?: boolean;

        property classNameFormatter

        classNameFormatter?: (index: number) => string;

          Namespaces

          namespace global

          namespace global {}

            namespace global.jest

            namespace global.jest {}

              interface AsymmetricMatcher

              interface AsymmetricMatcher {}

                property $$typeof

                $$typeof: Symbol;

                  property sample

                  sample?: string | RegExp | object | Array<any> | Function;

                    interface Matchers

                    interface Matchers<R, T> {}

                      method toHaveStyleRule

                      toHaveStyleRule: (property: string, value?: Value, options?: Options) => R;

                        interface Options

                        interface Options {}

                          property media

                          media?: string;

                            property modifier

                            modifier?: string | ReturnType<typeof css>;

                              property supports

                              supports?: string;

                                type Value

                                type Value = string | number | RegExp | AsymmetricMatcher | undefined;

                                  Package Files (1)

                                  Dependencies (1)

                                  Dev Dependencies (28)

                                  Peer Dependencies (1)

                                  Badge

                                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-styled-components.

                                  • Markdown
                                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/jest-styled-components)
                                  • HTML
                                    <a href="https://www.jsdocs.io/package/jest-styled-components"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>