Skip to content

Include only plain objects/arrays in t.true/t.false output of statements #1226

@vadimdemedes

Description

@vadimdemedes

AVA's magic-assert output causes a crash when this kind of assertion fails:

t.true(some.spy.calledOnce);

or similar, when functions/instances are involved. This is happening, because @ava/pretty-print tries to print some.spy and some nicely. When parsing statements in lib/enhance-assert, we should ignore anything but plain objects and arrays.

Metadata

Metadata

Assignees

Labels

bugcurrent functionality does not work as desiredpriority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions