Skip to content

Show word diffs in strings when they are properties on an object #9940

Closed as not planned
@orta

Description

@orta

🚀 Feature Proposal

I have some snapshots which are pretty chunky strings of markdown

Screen Shot 2020-05-01 at 11 29 49 AM

I'd like to be able to more quickly see where the string differ!
This is already supported when directly diffing strings (expect('a b').toEqual('a c') or expect('a c').toMatchSnapshot()), but not for strings within other structures.

Motivation

I'd like a clue where the difference starts

Example

Any snapshot

Pitch

It's a nice to have! :D

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions