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

1.5.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @vitest/expect

Weekly Downloads

5,160,837

Version

1.5.2

License

MIT

Unpacked Size

142 kB

Total Files

7

Last publish

Collaborators

  • vitestbot
  • oreanno
  • patak
  • antfu