版博士V2.0程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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. ```