Detalhes do pacote

@storybook/expect

storybookjs2mMITdepreciado28.1.3-5

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

readme (leia-me)

@storybook/expect

npm version

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)

Documentation

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