New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@vitest/expect

Package Overview
Dependencies
Maintainers
5
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/expect

Jest's expect matchers as a Chai plugin

Source
npmnpm
Version
5.0.3
Version published
Weekly downloads
152M
100.37%
Maintainers
5
Weekly downloads
 
Created
Source

@vitest/expect

NPM version

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)

GitHub | Documentation

Keywords

vitest

FAQs

Package last updated on 30 Sep 2026

Related posts