Skip to content

Usage of expect in matcherTest breaks under Vitest without injected globals #459

Description

@me4502

The matcherTest function within src/utils.js currently breaks when running under Vitest, without injected globals. This is due to the expect call, which is currently written to use the injected expect global.

Without injected globals, this is an undefined function and therefore always triggers a false response by this matcher test. This then breaks any rules which run the matcher, such as toHaveStyleRule.

Metadata

Metadata

Assignees

Labels

No labels
No labels

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