Skip to content

Latest commit

Β 

History

History
185 lines (103 loc) Β· 12.4 KB

CHANGELOG.md

File metadata and controls

185 lines (103 loc) Β· 12.4 KB

@emotion/jest

11.0.0-rc.0

Patch Changes

  • 3abcf673 #2043 Thanks @Andarist! - @types/jest has been moved from the dependencies to the optional peer dependencies as it should not be installed automatically for users not using TypeScript.

11.0.0-rc.0

Major Changes

11.0.0-next.19

Patch Changes

  • 5d094b57 #2027 Thanks @Andarist! - Fixed an issue with serializing Enzyme's ReactWrapper (what is returned from mount) with props containing elements without the css prop.

11.0.0-next.17

11.0.0-next.16

11.0.0-next.15

Patch Changes

  • 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 from React.createElement) in the serializer and toHaveStyleRule matcher. It's possible to get those elements when traversing Enzyme's trees.

11.0.0-next.14

Major Changes

  • cd77efbf #1920 Thanks @Andarist! - The root entry (@emotion/jest) no longer has default and serializer exports. You can still import createSerializer 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's snapshotSerializers option, so it no longer has a default export - it only has test & serialize exports.. You can import createEnzymeSerializer 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's snapshotSerializers option, so it no longer has a default export - it only has test & serialize exports. You can import createSerializer from the root entry (@emotion/jest) and create your own serializer if needed.

Patch Changes

11.0.0-next.13

Major Changes

  • 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(previously jest-emotion) can't be used directly in the snapshotSerializers 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.

Minor Changes

  • ca599c5f #1901 Thanks @Andarist! - Fixed an issue with all styles being recognized as changed in Jest 25 on unrelated changed.

Patch Changes

  • Updated dependencies [9e998e37]:
    • @emotion/css@11.0.0-next.13
    • @emotion/react@11.0.0-next.13

11.0.0-next.12

Patch Changes

11.0.0-next.10

Major Changes

  • b8476e08 #1600 Thanks @mitchellhamilton! - Rename jest-emotion to @emotion/jest. Please replace "snapshotSerializers": ["jest-emotion"] with "snapshotSerializers": ["@emotion/jest"] if you're using the snapshot serializer. Also replace any imports of jest-emotion with @emotion/jest or use the @emotion/pkg-renaming ESLint rule from @emotion/eslint-plugin.

Minor Changes

  • b8476e08 #1600 Thanks @mitchellhamilton! - Improve support for Enzyme's shallow rendering with the addition of the @emotion/jest/enzyme snapshot serializer

Patch Changes

11.0.0-next.7

Patch Changes

  • Updated dependencies [5c55fd17]:
    • @emotion/core@11.0.0-next.7

11.0.0-next.4

Major Changes

  • 702f3fd2 #973 Thanks @spudly! - Added the T parameter to the Matchers interface in the TypeScript definitions to make this module compatible with @types/jest@^24.0.20.

Patch Changes

  • Updated dependencies []:
    • @emotion/core@11.0.0-next.4

11.0.0-next.3

Patch Changes

  • Updated dependencies [a085003d]:
    • @emotion/core@11.0.0-next.3

11.0.0-next.1

Patch Changes

  • e67a5be9 #967 Thanks @Andarist! - Match rules in declarations with component used as a selector
  • Updated dependencies []:
    • @emotion/core@11.0.0-next.1

11.0.0-next.0

Major Changes

  • 302bdba1 #1600 Thanks @mitchellhamilton! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number

Patch Changes

  • Updated dependencies [302bdba1]:
    • @emotion/core@11.0.0-next.0
    • emotion@11.0.0-next.0

10.0.32

Patch Changes

10.0.27

Patch Changes

10.0.26

Patch Changes

  • b3c5b8de #1667 Thanks @Andarist! - Revert improved support for Enzyme's shallow rendering - its release was an unforseen breaking change.

10.0.25

Patch Changes

10.0.17

Patch Changes

10.0.14

Patch Changes

10.0.11

Patch Changes