Skip to content

Releases: icd2k3/jest-auto-snapshots

3.0.1

13 Sep 15:27
ca95a73
Compare
Choose a tag to compare
  • Use react-test-renderer's shallow render instead of the full tree render.

3.0.0

13 Sep 15:25
ca95a73
Compare
Choose a tag to compare
  • Breaking: Removes enzyme and enzyme-to-json from the project in favor of react-test-renderer. After upgrading, run your test suite with the update -u flag as the snapshot files may change slightly.

2.1.4

13 Sep 03:37
1a9ce15
Compare
Choose a tag to compare
Merge pull request #10 from swac/node-version

be more lenient about node version

2.1.2

21 Feb 19:16
394714f
Compare
Choose a tag to compare
  • Improvement to array prop type handling to test possibilities of 1 vs 2 items if required and 0-2 items if optional

2.1.1

21 Feb 16:52
394714f
Compare
Choose a tag to compare
  • Fixes an issue with the arrayOf propType: If the prop is required, don't snapshot test the possibility of an empty array.

2.1.0

17 Feb 16:15
303d23b
Compare
Choose a tag to compare

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 example type: PropTypes.oneOf('News', 'Photos') would inject 'News' into the snapshot instead of the desired News
  • Better warning logging (the old warning messages didn't reflect recent changes to the package)
  • Fresh dependencies and linter fixes

2.0.1

18 Jan 01:23
aca24a3
Compare
Choose a tag to compare
  • Fixes a small issue with double labels in snapshot files

2.0.0

14 Jan 19:38
Compare
Choose a tag to compare

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 and fixturesByPropKey

1.0.1

14 Jan 16:09
Compare
Choose a tag to compare
  • Added support for components that don't require props to render

1.0.0

07 Jan 22:17
e04d440
Compare
Choose a tag to compare
  • Initial release