Development

Prerequisites

Setup

Clone the repository and install dependencies:

git clone https://github.com/gravity-ui/charts.git
cd charts
npm ci

Running Storybook

To start the development server with Storybook:

npm run start

Storybook will be available at http://localhost:7007.

Running tests

npm test

Visual regression tests run in Docker to ensure consistent screenshots across environments:

npm run playwright:docker

If you need to update the reference screenshots (e.g. after intentional UI changes):

npm run playwright:docker:update

Contributing

Please refer to the contributing document before submitting a pull request.