Skip to content

t.like() selector must not contain circular references #3205

@guoard

Description

@guoard

Hi,

The following code works in ava version 5.2.0:

const arr = ['c1', 'c2']
t.like({a: 'a', b: 'b', c: ['c1', 'c2'], d: ['c1', 'c2']}, {b: 'b', d: arr, c: arr})

However, it does not work in version 5.3.0 and seems to be related to pull request #3185.

Receive this error:

`t.like()` selector must not contain circular references

Metadata

Metadata

Assignees

Labels

bugcurrent functionality does not work as desired

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions