react-native-jest-serializer
v1.1.0
Published
A jest snapshot serializer tailored for react-native.
Downloads
163
Readme
react-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'));