版博士V2.0程序
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.

пре 1 година
1234567891011121314151617
  1. # @vitest/expect
  2. Jest's expect matchers as a Chai plugin.
  3. ## Usage
  4. ```js
  5. import * as chai from 'chai'
  6. import { JestAsymmetricMatchers, JestChaiExpect, JestExtend } from '@vitest/expect'
  7. // allows using expect.extend instead of chai.use to extend plugins
  8. chai.use(JestExtend)
  9. // adds all jest matchers to expect
  10. chai.use(JestChaiExpect)
  11. // adds asymmetric matchers like stringContaining, objectContaining
  12. chai.use(JestAsymmetricMatchers)
  13. ```