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

1.6.0 • 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,284,481

Version

1.6.0

License

MIT

Unpacked Size

143 kB

Total Files

7

Last publish

Collaborators

  • vitestbot
  • oreanno
  • patak
  • antfu