You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 months ago | |
---|---|---|
.. | ||
dist | 2 months ago | |
LICENSE | 2 months ago | |
README.md | 2 months ago | |
index.d.ts | 2 months ago | |
package.json | 2 months ago |
README.md
@vitest/expect
Jest's expect matchers as a Chai plugin.
Usage
import * as chai from 'chai'
import {
JestAsymmetricMatchers,
JestChaiExpect,
JestExtend,
} from '@vitest/expect'
// allows using expect.extend instead of chai.use to extend plugins
chai.use(JestExtend)
// adds all jest matchers to expect
chai.use(JestChaiExpect)
// adds asymmetric matchers like stringContaining, objectContaining
chai.use(JestAsymmetricMatchers)