All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
6.3.1 - 2018-11-11
6.3.0 - 2018-11-10
- [toHaveStyleRule] Ability to avoid passing the expected value and use the
.not
modifier (see #206).
6.2.2 - 2018-10-21
- Avoid using object spread to make this package compatible with Node <8.6 (see #196).
6.2.1 - 2018-09-22
- [toHaveStyleRule] Do not fail when components have empty string as children (see #189).
6.2.0 - 2018-09-08
- [toHaveStyleRule] Fix media regex to allow dots (see #182).
6.1.1 - 2018-08-22
- [toHaveStyleRule] Fix regression with nested components.
- [toHaveStyleRule] Avoid throwing on non existing Enzyme components.
6.1.0 - 2018-08-19
- Support react-testing-library.
6.0.1 - 2018-08-11
- Fix
AsymmetricMatcher
TS definition.
6.0.0 - 2018-08-11
- [toHaveStyleRule] Added support for Jest asymmetric matchers and more (see #148).
- [toHaveStyleRule] Support
&&
(see #126). - [toHaveStyleRule] Nested component classNames are serialized too(see #162).
5.0.1 - 2018-04-01
- [toHaveStyleRule] Allow spaces or no spaces in media queries (see #128).
5.0.0 - 2018-02-24
- [toHaveStyleRule] Improve support for complex modifiers.
- Drop support for Styled Components v1.
4.10.0 - 2018-01-14
- [toHaveStyleRule] Support Preact.
4.9.0 - 2017-10-22
- [toHaveStyleRule (Native)] Full rewrite to support Styled Components v2.
- Update dependencies.
- Improve README.
- [toHaveStyleRule (React)] Support styled components wrapped with
styled
.
4.8.0 - 2017-10-21
- [toMatchSnapshot] Support Preact.
4.7.1 - 2017-10-18
- [toMatchSnapshot] Add the optional
options
parameter to the matcher type definition.
4.7.0 - 2017-09-30
- Support React 16.
- Update dependencies.
4.6.0 - 2017-09-09
- [toMatchSnapshot] Make the matcher compatible with Jest v21.
4.5.0 - 2017-09-05
- [toHaveStyleRule (React)] Make the matcher compatible with Jest v21 (see jestjs/jest#3972).
4.4.1 - 2017-08-19
- [toMatchSnapshot] Avoid using non-hashes class names when generating snapshots.
4.4.0 - 2017-08-11
- [toMatchSnapshot] Add
modifier
option to search for pseudo classes and attributes.
4.3.0 - 2017-07-31
- [toMatchSnapshot] Accept a third options parameter to search for rules nested within At-rules.
4.2.2 - 2017-07-24
- [toMatchSnapshot] Handle non Styled Components class names with leading white spaces.
4.2.1 - 2017-07-23
- [toMatchSnapshot] Handle class names with trailing white spaces.
4.2.0 - 2017-07-20
- [toHaveStyleRule (React)] Accept regular expressions as a second parameter.
4.1.2 - 2017-07-20
- [toHaveStyleRule (React)] Avoid showing Enzyme errors when class names are not present in the tree.
4.1.1 - 2017-07-20
- [toMatchSnapshot] Fix regression introduced in 4.1.0 which broke the support for Styled Components < 2.
4.1.0 - 2017-07-20
- [toMatchSnapshot] Preserve custom (i.e. not generated by Styled Components) class names.
4.0.3 - 2017-07-18
- [toMatchSnapshot] Collect unique class names and avoid skipping indexes in placeholders.
- [toHaveStyleRule (React)] Support
null
components.
4.0.2 - 2017-07-17
- [toMatchSnapshot] Make the replace regular expression less greedy (i.e. stop at the first match).
4.0.1 - 2017-07-16
- [toMatchSnapshot] Replace class names inside the
className
attribute only.
4.0.0 - 2017-07-15
- [toMatchSnapshot] Replace class names generated by Styled Components with placeholders.
- Update dependencies.
- Improve README.
- Format code with Prettier.
- Refactor folders and tests.
- Remove
toMatchStyledComponentsSnapshot
matcher.