Test - Snapshot testing (UI)

Testing Infrastructure

About

Snapshot testing refers to the practice of recording the known good output of a component for a given input and then flagging the component whenever the output changes in future.

With a snaphost test if the test failed, it should prompted us to verify the changes and to update them if necessary

Example:

› 3 snapshots failed from 1 test suite. Inspect your code changes or press `u` to update them.

List





Discover More
Storybook Actions
React - Storybook (Component workbench)

Storybook is a component workbench where you write story. A story is a single state of your component. Technically, it is a function that returns something that can be rendered to screen. UI component...



Share this page:
Follow us:
Task Runner