Package Exports
- jest-styled-components
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jest-styled-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Jest Styled Components
Jest utilities for Styled Components.
Installation
yarn add --dev jest-styled-componentsReact
Preview
Usage
// package.json
"jest": {
"testEnvironment": "node"
}// *.spec.js
import 'jest-styled-components'
// ...
expect(tree).toMatchStyledComponentsSnapshot()React Native
Preview
Usage
// *.spec.js
import 'jest-styled-components/native'
// ...
expect(tree).toHaveStyleRule('property', value)