Skip to content

jest-emotion and snapshot-diff not playing nice #1898

@DarkPurple141

Description

@DarkPurple141

Current behavior:

jest-emotion doesn't appear to work as a serializer for snapshot-diff. Tried various permutations of the config and the test setup but it doesn't play nice. It's unclear if this is a problem with the docs or an API thing.

To reproduce:

Minimal repo:
https://github.com/DarkPurple141/jest-emotion-typescript-minimal/tree/master

  1. install dependencies and run jest

Expected behavior:

Environment information:

  • react version: 16.9
  • emotion version: 10.0.28

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions