Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/storybookjs/expect

Browser-compatible version of Jest's `expect`
https://github.com/storybookjs/expect

Last synced: about 1 month ago
JSON representation

Browser-compatible version of Jest's `expect`

Awesome Lists containing this project

README

        

> ⚠️ This package will not work with storybook 8
>
> Please use @storybook/test instead.

# @storybook/expect

[![npm version](https://img.shields.io/npm/v/@storybook/expect?label=%40storybook%2Fexpect)](https://npmjs.com/package/@storybook/expect)

Browser-compatible version of Jest's [`expect`](https://jestjs.io/docs/expect).

## Installation

```sh
yarn add @storybook/expect
```

or

```sh
npm install @storybook/expect
```

## Usage

```js
import expect from "@storybook/expect"

expect(true).toBe(true)
```

## Documentation

👉 https://jestjs.io/docs/expect