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.
The
matcherTestfunction withinsrc/utils.jscurrently breaks when running under Vitest, without injected globals. This is due to theexpectcall, which is currently written to use the injectedexpectglobal.Without injected globals, this is an undefined function and therefore always triggers a
falseresponse by this matcher test. This then breaks any rules which run the matcher, such astoHaveStyleRule.