You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #507 but not a duplicate, since I am using the latest version 1.1.36.
With all the examples, the expect gets marked with ESLint: Expect has an unknown modifier (vitest/valid-expect).
My guess is that some or all of the chai language chains are not treated properly.
// false positiveexpect('hello').to.be.a('string').that.does.not.contain('world');// false negative, vitest fails// TypeError: expect(...).to.be is not a functionexpect('hello').to.be('string').that.does.not.contain('world');// false positiveexpect('hello').not.to.be.an('array');// true negativeexpect('hello').to.not.contain('world');// false positiveexpect('hello').not.to.contain('world');
PatrikHajek, oliverpool, IgorTerechtchenko and SilverhillSoftware