Releases: icd2k3/jest-auto-snapshots
Releases · icd2k3/jest-auto-snapshots
3.0.1
3.0.0
2.1.4
2.1.2
2.1.1
2.1.0
Note: tagging this as a minor release because you might have to update snapshots while running your tests if you're using .oneOf
in places...
- Fixes enum propType (aka
oneOf
) which was injecting the string quotes into the component. For exampletype: PropTypes.oneOf('News', 'Photos')
would inject'News'
into the snapshot instead of the desiredNews
- Better warning logging (the old warning messages didn't reflect recent changes to the package)
- Fresh dependencies and linter fixes
2.0.1
2.0.0
After using v1 in a large project for a week, I decided it had too much "magic" in terms of automatically trying to find the component file for you. This resulted in confusing config for something that you usually had to enter manually anyways. v2 introduces 2 breaking changes that should make the package more flexible and easier to use. These changes are also reflected in the readme.
- Component file path is now required as the second argument.
- Simplified config into 2 options
fixturesByPropType
andfixturesByPropKey