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

3.1.2 • 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

14,491,015

Version

3.1.2

License

MIT

Unpacked Size

175 kB

Total Files

7

Last publish

Collaborators

  • antfu
  • patak
  • oreanno
  • vitestbot