Skip to content

[feature request]: show deeper diff when testing for specific items #3548

Description

@willi84

Issue description or question

for more complex object-arrays its hard to see the failing property/difference

expect(result.logger.items).toContainEqual({
            message: `Flaky response on page 3, retrying... [0/3]`,
            type: 'WARN',
            time: expect.any(Number),
            telemetry: {
                nextTarget:
                    'https://gitlab.flaky2.com/api/v4/projects?per_page=3&page=3',
                nextPage: 3,
                retry: 0,
                maxRetry: 3,
            },
        });
  • either in the popup I have a real chance to see the failing issue
Image
  • nor I can see it in the diff view
Image
  • for array with 1 layer it works
Image

feature idea

make the diff check for 2-3 layers deeper could improve a lot the developer experience and speed when debugging

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions