@vitest/expect
TypeScript icon, indicating that this package has built-in type declarations

3.2.3 • Public • Published

@vitest/expect

Jest's expect matchers as a Chai plugin.

Usage

import {
  JestAsymmetricMatchers,
  JestChaiExpect,
  JestExtend,
} from '@vitest/expect'
import * as chai from 'chai'

// 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)

Readme

Keywords

none

Package Sidebar

Install

npm i @vitest/expect

Weekly Downloads

17,761,439

Version

3.2.3

License

MIT

Unpacked Size

96.4 kB

Total Files

5

Last publish

Collaborators

  • antfu
  • patak
  • oreanno
  • vitestbot