Major Changes
-
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.