@storybook/expect
Browser-compatible version of Jest's expect
.
Installation
yarn add @storybook/expect
or
npm install @storybook/expect
Usage
import expect from "@storybook/expect"
expect(true).toBe(true)
This package has been deprecated
Author message:
In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. When upgrading to Storybook 8 with 'npx storybook@latest upgrade', you will get prompted and will get an automigration for the new package. Please migrate when you can.
Browser-compatible version of Jest's expect
.
yarn add @storybook/expect
or
npm install @storybook/expect
import expect from "@storybook/expect"
expect(true).toBe(true)
npm i @storybook/expect
476,185
28.1.3-5
MIT
682 kB
7