Skip to content

how to match pointers/references? #149

Closed
@allan-bonadio

Description

@allan-bonadio

I have code that has linked lists. I have to test to see if that pointer points to this object. Just a simple === comparison. Instead, I've been using toEqual(), which is tedious, especially since there's some circular loops in my pointers. I would think there's a matcher for this simple situation, but I wasn't able to find any. What am I missing? Do I have to make a custom matcher?

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