Skip to content

Fix jest/valid-expect lints throughout the codebase #24709

Description

@weeman1337

This is a follow-up to matrix-org/matrix-react-sdk#10261, sister issue tracking the same thing in the matrix-js-sdk repo,

There are too many flawed tests which violate jest/valid-expect and don't pass by simply adding await to the assertions (they require more http mocking, etc). We should fix up these scenarios as they are probably masking some failure cases.

The rule is currently disabled in .eslintrc.js

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions