5d094b57
#2027 Thanks @Andarist! - Fixed an issue with serializing Enzyme'sReactWrapper
(what is returned frommount
) with props containing elements without the css prop.
8a88e771
#1880 Thanks @Jimmydalecleveland! - Improved stability of the generated snapshots - styles are extracted now based on the order in which the associated with them class names appear in the serialized elements rather than based on the order of the actual rules in the document.
ae8c1d9d
#1902 Thanks @Andarist! - Added support for handling regular React elements (objects returned fromReact.createElement
) in the serializer andtoHaveStyleRule
matcher. It's possible to get those elements when traversing Enzyme's trees.
cd77efbf
#1920 Thanks @Andarist! - The root entry (@emotion/jest
) no longer hasdefault
andserializer
exports. You can still importcreateSerializer
from it to create your own serializer if needed.
cd77efbf
#1920 Thanks @Andarist! -@emotion/jest/enzyme
entrypoint has been renamed to@emotion/jest/enzyme-serializer
. It's main purpose is compatibility with Jest'ssnapshotSerializers
option, so it no longer has a default export - it only hastest
&serialize
exports.. You can importcreateEnzymeSerializer
from the root entry (@emotion/jest
) and create your own serializer if needed.
cd77efbf
#1920 Thanks @Andarist! -@emotion/jest/serializer
's main purpose is compatibility with Jest'ssnapshotSerializers
option, so it no longer has a default export - it only hastest
&serialize
exports. You can importcreateSerializer
from the root entry (@emotion/jest
) and create your own serializer if needed.
- Updated dependencies [
58dc08a6
,f57a7229
,6d32d82b
]:- @emotion/react@11.0.0-next.14
- @emotion/css@11.0.0-next.14
ca599c5f
#1901 Thanks @Andarist! -test
&print
are no longer exported as named exports. If you want to access the default serializer just access the default export. This means that@emotion/jest
(previouslyjest-emotion
) can't be used directly in thesnapshotSerializers
option, you should use@emotion/jest/serializer
instead for this.
ca599c5f
#1901 Thanks @Andarist! - Refactored to use new serializers API which has been introduced in Jest 21.
ca599c5f
#1901 Thanks @Andarist! - Fixed an issue with all styles being recognized as changed in Jest 25 on unrelated changed.
- Updated dependencies [
9e998e37
]:- @emotion/css@11.0.0-next.13
- @emotion/react@11.0.0-next.13
- Updated dependencies [
7dea6d7a
,105de5c8
,be2eb614
,5bea60b1
,75e2f9e1
,105de5c8
]:- @emotion/react@11.0.0-next.12
- @emotion/css@11.0.0-next.12
b8476e08
#1600 Thanks @mitchellhamilton! - Renamejest-emotion
to@emotion/jest
. Please replace"snapshotSerializers": ["jest-emotion"]
with"snapshotSerializers": ["@emotion/jest"]
if you're using the snapshot serializer. Also replace any imports ofjest-emotion
with@emotion/jest
or use the@emotion/pkg-renaming
ESLint rule from@emotion/eslint-plugin
.
b8476e08
#1600 Thanks @mitchellhamilton! - Improve support for Enzyme's shallow rendering with the addition of the @emotion/jest/enzyme snapshot serializer
- Updated dependencies [
b8476e08
,b8476e08
,affed3dd
,b8476e08
,d62d9101
]:- @emotion/react@11.0.0-next.10
- @emotion/css@11.0.0-next.10
- Updated dependencies [
5c55fd17
]:- @emotion/core@11.0.0-next.7
702f3fd2
#973 Thanks @spudly! - Added theT
parameter to theMatchers
interface in the TypeScript definitions to make this module compatible with@types/jest@^24.0.20
.
- Updated dependencies []:
- @emotion/core@11.0.0-next.4
- Updated dependencies [
a085003d
]:- @emotion/core@11.0.0-next.3
e67a5be9
#967 Thanks @Andarist! - Match rules in declarations with component used as a selector- Updated dependencies []:
- @emotion/core@11.0.0-next.1
302bdba1
#1600 Thanks @mitchellhamilton! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number
- Updated dependencies [
302bdba1
]:- @emotion/core@11.0.0-next.0
- emotion@11.0.0-next.0
4c62ae9
#1698 Thanks @Andarist! - Add LICENSE file- Updated dependencies [
4c62ae9
]:- @emotion/core@10.0.27
- emotion@10.0.27
b3c5b8de
#1667 Thanks @Andarist! - Revert improved support for Enzyme's shallow rendering - its release was an unforseen breaking change.
- fa5ffa80 #1477 Thanks @liamcmitchell-sc! - Fixed snapshots when using Enzyme serializer and its deep mode in combination with fragments
- c0eb604d #1419 Thanks @mitchellhamilton! - Update build tool