react-native-jest-serializer
v1.1.0react-native-jest-serializer
A jest snapshot serializer tailored for react-native.
Features
Hex color highlighting
Style array merging
Non-presentational prop omitting
Setup
yarn add -D react-native-jest-serializer
Then either:
Declare in your package.json / jest config:
"jest": {
"snapshotSerializers": ["react-native-jest-serializer"]
}
OR
Add in your test setup file:
expect.addSnapshotSerializer(require('react-native-jest-serializer'));
npm i react-native-jest-serializer
Metadata
- MIT
- Whatever
- Wes Johnson
- released 8/19/2019