Skip to content

🛠️ Repo: Change assertion syntax from string to chain #5454

@mark-wiemer

Description

@mark-wiemer

Tooling Suggestion Checklist

Overview

Mocha's internal tests are currently using a customized fork of unexpected with assertions like expect(x, 'not to equal', y), but popular assertion libraries often use expect(x).not.toEqual(y) for easier chaining and IntelliSense suggestions. We should update our internal assertion syntax to be more consistent with these popular libraries for improved developer experience.

Additional Info

This probably won't improve consistency of our tests, but it'll be easier for others to contribute!

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions